Skip to content

Commit 0940b48

Browse files
committed
The @SInCE comment was added to the methods
1 parent 50862b5 commit 0940b48

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/Json.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ class Json {
2626

2727
/**
2828
* Creating JSON file from array.
29-
*
29+
*
30+
* @since 1.0.0
31+
*
3032
* @param array $array → array to be converted to JSON file
3133
* @param string $pathfile → path to the file
3234
*
@@ -58,7 +60,9 @@ public static function arrayToFile(array $array, string $pathfile): bool {
5860

5961
/**
6062
* Save to array the JSON file content.
61-
*
63+
*
64+
* @since 1.0.0
65+
*
6266
* @param string $pathfile → path to JSON file
6367
*
6468
* @throws JsonException → there is no file
@@ -83,6 +87,8 @@ public static function fileToArray(string $pathfile): array {
8387
/**
8488
* Check for errors.
8589
*
90+
* @since 1.0.0
91+
*
8692
* @throws JsonException → JSON (encode-decode) error
8793
* @return true
8894
*/
@@ -106,4 +112,4 @@ public static function jsonLastError() {
106112
throw new JsonException('Unknown error', 995);
107113
}
108114
}
109-
}
115+
}

0 commit comments

Comments
 (0)