Skip to content

Commit

Permalink
[minor] Unescape slashes in legacy array type
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsykun committed Nov 11, 2023
1 parent 71e6711 commit cb83362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DBAL/Types/ArrayType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit cb83362

Please sign in to comment.