Skip to content

Commit a15f44e

Browse files
committed
Fix php84 str_getcsv deprecation in DataStructure.php
> As of PHP 8.4.0, depending on the default value of escape is deprecated. It needs to be provided explicitly either positionally or by the use of named arguments. https://www.php.net/manual/en/function.str-getcsv.php A very minimal patch/quick fix.. tell me if you want anything
1 parent a8fbd9f commit a15f44e

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)