Skip to content

Commit

Permalink
Fix php84 str_getcsv deprecation (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
smnandre authored Dec 19, 2024
1 parent a8fbd9f commit f63d4fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MartinGeorgiev/Utils/DataStructure.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit f63d4fe

Please sign in to comment.