Skip to content

Commit 1346a5b

Browse files
committed
Tweak the code to avoid fabbot false positives
1 parent 2eb3cb5 commit 1346a5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/Bundle/Reader/JsonBundleReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function read($path, $locale)
4646
$data = json_decode(file_get_contents($fileName), true);
4747

4848
if (null === $data) {
49-
throw new RuntimeException(sprintf('The resource bundle "%s" contains invalid JSON: %s.', $fileName, json_last_error_msg()));
49+
throw new RuntimeException(sprintf('The resource bundle "%s" contains invalid JSON: '.json_last_error_msg(), $fileName));
5050
}
5151

5252
return $data;

0 commit comments

Comments
 (0)