Skip to content

Commit f63d4fe

Browse files
authored
Fix php84 str_getcsv deprecation (#249)
1 parent a8fbd9f commit f63d4fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MartinGeorgiev/Utils/DataStructure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function transformPostgresTextArrayToPHPArray(string $postgresArra
2626
throw new \InvalidArgumentException('Only single-dimensioned arrays are supported');
2727
}
2828

29-
$phpArray = \str_getcsv(\trim($textArrayToTransform, '{}'));
29+
$phpArray = \str_getcsv(\trim($textArrayToTransform, '{}'), escape: '\\');
3030
foreach ($phpArray as $i => $text) {
3131
if ($text === null) {
3232
unset($phpArray[$i]);

0 commit comments

Comments
 (0)