Skip to content

Commit 0138d10

Browse files
committed
Update config.dist.php
1 parent fdf74a3 commit 0138d10

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

config.dist.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ static function (string $value): ?string {
6464
} catch (Exception $e) {
6565
// ...
6666
}
67+
} elseif (!is_string($unserialized_value) || !is_numeric($unserialized_value)) {
68+
// for weird edge cases when data are not string/int
69+
$unserialized_value = serialize($unserialized_value);
6770
}
6871

6972
return (string) $unserialized_value;

0 commit comments

Comments
 (0)