We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 63238a5 + 1346a5b commit 040f10fCopy full SHA for 040f10f
Data/Bundle/Reader/JsonBundleReader.php
@@ -46,7 +46,7 @@ public function read($path, $locale)
46
$data = json_decode(file_get_contents($fileName), true);
47
48
if (null === $data) {
49
- 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));
50
}
51
52
return $data;
0 commit comments