diff --git a/src/MartinGeorgiev/Utils/DataStructure.php b/src/MartinGeorgiev/Utils/DataStructure.php index b4f785d2..cdbcc7ac 100644 --- a/src/MartinGeorgiev/Utils/DataStructure.php +++ b/src/MartinGeorgiev/Utils/DataStructure.php @@ -26,7 +26,7 @@ public static function transformPostgresTextArrayToPHPArray(string $postgresArra throw new \InvalidArgumentException('Only single-dimensioned arrays are supported'); } - $phpArray = \str_getcsv(\trim($textArrayToTransform, '{}')); + $phpArray = \str_getcsv(\trim($textArrayToTransform, '{}'), escape: '\\'); foreach ($phpArray as $i => $text) { if ($text === null) { unset($phpArray[$i]);