Skip to content

Commit ccf6f0f

Browse files
committed
Fixing sample error message in README
1 parent 029eaaa commit ccf6f0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if ($content === false) {
3636
}
3737
$foobar = json_decode($content);
3838
if (json_last_error() !== JSON_ERROR_NONE) {
39-
throw new FileLoadingException('foobar.json does not contain valid JSON: '.json_last_error());
39+
throw new FileLoadingException('foobar.json does not contain valid JSON: '.json_last_error_msg());
4040
}
4141
```
4242

0 commit comments

Comments
 (0)