Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: thecodingmachine/safe
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 545d34ed909f36058381edfe270d8cb645f7d3da
Choose a base ref
..
head repository: thecodingmachine/safe
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c36263e3500b2e030c7ded02d4a1357d8b9ff451
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/special_cases.php
2 changes: 1 addition & 1 deletion lib/special_cases.php
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ function json_decode(string $json, bool $assoc = false, int $depth = 512, int $o
try {
$data = \json_decode($json, $assoc, $depth, $options);
} catch (\Exception $e) {
throw JsonException::createFromPhpError();
throw new JsonException($e->getMessage(), (int) $e->getCode());
}
return $data;
}