Skip to content

Commit 7795fcf

Browse files
authored
PHP 8.4 compatibility
1 parent 1633f5c commit 7795fcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Trafiklab/Gtfs/Util/Internal/GtfsParserUtil.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static function deserializeCSV(GtfsArchive $gtfsArchive, string $csvPath,
3030

3131
$handle = self::openFile($csvPath);
3232
if ($handle) {
33-
while (($row = fgetcsv($handle)) !== false) {
33+
while (($row = fgetcsv($handle, escape: "")) !== false) {
3434
$row = array_map('trim', $row);
3535
// Read the header row
3636
if (empty($fieldNames)) {
@@ -71,7 +71,7 @@ public static function deserializeCSVWithCompositeIndex(GtfsArchive $gtfsArchive
7171

7272
$handle = self::openFile($csvPath);
7373
if ($handle) {
74-
while (($row = fgetcsv($handle)) !== false) {
74+
while (($row = fgetcsv($handle, escape: "")) !== false) {
7575
$row = array_map('trim', $row);
7676
// Read the header row
7777
if (empty($fieldNames)) {

0 commit comments

Comments
 (0)