From 9fc67016a02d5094a76d9363efb832d0caba2b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Andr=C3=A9?= Date: Tue, 17 Dec 2024 01:51:10 +0100 Subject: [PATCH] set current default value --- src/MartinGeorgiev/Utils/DataStructure.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MartinGeorgiev/Utils/DataStructure.php b/src/MartinGeorgiev/Utils/DataStructure.php index 7a5681d..cdbcc7a 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, '{}'), escape: ''); + $phpArray = \str_getcsv(\trim($textArrayToTransform, '{}'), escape: '\\'); foreach ($phpArray as $i => $text) { if ($text === null) { unset($phpArray[$i]);