Skip to content

Commit f699c31

Browse files
committed
Update config.dist.php
1 parent cf58ae9 commit f699c31

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

config.dist.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,11 @@ static function (string $value): ?string {
8686

8787
if (is_array($unserialized_value)) {
8888
try {
89-
$unserialized_value = json_encode($unserialized_value, JSON_THROW_ON_ERROR);
90-
} catch (Exception $e) {
91-
// ...
89+
return json_encode($unserialized_value, JSON_THROW_ON_ERROR);
90+
} catch (JsonException $e) {
91+
return $e->getMessage();
9292
}
9393
}
94-
95-
return (string) $unserialized_value;
9694
}
9795

9896
return null;

0 commit comments

Comments
 (0)