Skip to content

Commit 6f81de0

Browse files
committed
Updated to 1.1.4 version
1 parent 45c1682 commit 6f81de0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Json/Json.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static function fileToArray($file) {
6565

6666
$error = self::_jsonLastError();
6767

68-
return (!$array || isset($error['error-code'])) ? false : $array;
68+
return $array===false || isset($error['error-code']) ? false : $array;
6969
}
7070

7171
/**
@@ -91,13 +91,13 @@ private static function _createDirectory($file) {
9191

9292
$message = 'Could not create directory in';
9393

94-
throw new JsonException($message . ' ' . $path, 605);
94+
throw new JsonException($message . ' ' . $path);
9595
}
9696
}
9797
}
9898

9999
/**
100-
* Create directory recursively.
100+
* Save file.
101101
*
102102
* @since 1.1.3
103103
*
@@ -114,7 +114,7 @@ private static function _saveFile($file, $json) {
114114

115115
$message = 'Could not create file in';
116116

117-
throw new JsonException($message . ' ' . $file, 606);
117+
throw new JsonException($message . ' ' . $file);
118118
}
119119
}
120120

0 commit comments

Comments
 (0)