We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f9c8218 + dc50ad5 commit 9b37b1dCopy full SHA for 9b37b1d
Data/Bundle/Reader/JsonBundleReader.php
@@ -46,7 +46,7 @@ public function read(string $path, string $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