Skip to content

Commit

Permalink
set current default value
Browse files Browse the repository at this point in the history
  • Loading branch information
smnandre committed Dec 17, 2024
1 parent 8ad2336 commit 9fc6701
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, '{}'), escape: '');
$phpArray = \str_getcsv(\trim($textArrayToTransform, '{}'), escape: '\\');
foreach ($phpArray as $i => $text) {
if ($text === null) {
unset($phpArray[$i]);
Expand Down

0 comments on commit 9fc6701

Please sign in to comment.