From cb833621ba0bc3018a40535841f337612dbf982f Mon Sep 17 00:00:00 2001 From: Uladzimir Tsykun Date: Sat, 11 Nov 2023 14:00:55 +0100 Subject: [PATCH] [minor] Unescape slashes in legacy array type --- src/DBAL/Types/ArrayType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DBAL/Types/ArrayType.php b/src/DBAL/Types/ArrayType.php index 41d1bc26..616de26b 100644 --- a/src/DBAL/Types/ArrayType.php +++ b/src/DBAL/Types/ArrayType.php @@ -26,7 +26,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform) */ public function convertToDatabaseValue($value, AbstractPlatform $platform) { - return null === $value ? null : json_encode($value); + return null === $value ? null : json_encode($value, JSON_UNESCAPED_SLASHES); } /**