diff --git a/README.md b/README.md index 5cf1da7c..65077d07 100644 --- a/README.md +++ b/README.md @@ -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()); } ```