From f0147731e40524b34b3a2296775069e9fb553253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Tue, 11 Sep 2018 10:38:36 +0200 Subject: [PATCH] Fixing readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } ```