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.
1 parent cf58ae9 commit f699c31Copy full SHA for f699c31
1 file changed
config.dist.php
@@ -86,13 +86,11 @@ static function (string $value): ?string {
86
87
if (is_array($unserialized_value)) {
88
try {
89
- $unserialized_value = json_encode($unserialized_value, JSON_THROW_ON_ERROR);
90
- } catch (Exception $e) {
91
- // ...
+ return json_encode($unserialized_value, JSON_THROW_ON_ERROR);
+ } catch (JsonException $e) {
+ return $e->getMessage();
92
}
93
94
-
95
- return (string) $unserialized_value;
96
97
98
return null;
0 commit comments