From f77c803ed9395516ed36916c70888cb34fa74a20 Mon Sep 17 00:00:00 2001 From: Mohamed Alsharaf Date: Thu, 6 Nov 2025 12:18:13 +1300 Subject: [PATCH] Fix deprecated error in php 8.4 Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change --- src/Trafiklab/Gtfs/Util/Internal/GtfsParserUtil.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Trafiklab/Gtfs/Util/Internal/GtfsParserUtil.php b/src/Trafiklab/Gtfs/Util/Internal/GtfsParserUtil.php index 5bbfac1..3430ce5 100644 --- a/src/Trafiklab/Gtfs/Util/Internal/GtfsParserUtil.php +++ b/src/Trafiklab/Gtfs/Util/Internal/GtfsParserUtil.php @@ -30,7 +30,7 @@ public static function deserializeCSV(GtfsArchive $gtfsArchive, string $csvPath, $handle = self::openFile($csvPath); if ($handle) { - while (($row = fgetcsv($handle)) !== false) { + while (($row = fgetcsv($handle, null, ',', '"', '\\')) !== false) { $row = array_map('trim', $row); // Read the header row if (empty($fieldNames)) {