From 1346a5be35df869344078b89be1581138cb9745f Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sun, 12 Apr 2020 16:22:30 +0200 Subject: [PATCH] Tweak the code to avoid fabbot false positives --- Data/Bundle/Reader/JsonBundleReader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Data/Bundle/Reader/JsonBundleReader.php b/Data/Bundle/Reader/JsonBundleReader.php index a56fd6af..555dd377 100644 --- a/Data/Bundle/Reader/JsonBundleReader.php +++ b/Data/Bundle/Reader/JsonBundleReader.php @@ -46,7 +46,7 @@ public function read($path, $locale) $data = json_decode(file_get_contents($fileName), true); if (null === $data) { - throw new RuntimeException(sprintf('The resource bundle "%s" contains invalid JSON: %s.', $fileName, json_last_error_msg())); + throw new RuntimeException(sprintf('The resource bundle "%s" contains invalid JSON: '.json_last_error_msg(), $fileName)); } return $data;