Skip to content

Commit

Permalink
Merge pull request #20 from moufmouf/fix_readme
Browse files Browse the repository at this point in the history
Fixing readme
  • Loading branch information
moufmouf authored Sep 11, 2018
2 parents 78a5636 + f014773 commit db867e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if ($content === false) {
throw new FileLoadingException('Could not load file foobar.json');
}
$foobar = json_decode($content);
if ($foobar === false) {
if ($foobar === null) {
throw new FileLoadingException('foobar.json does not contain valid JSON: '.json_last_error());
}
```
Expand Down

0 comments on commit db867e0

Please sign in to comment.