diff --git a/src/datatypes/Csv.php b/src/datatypes/Csv.php index 0f06bb12..39658d06 100644 --- a/src/datatypes/Csv.php +++ b/src/datatypes/Csv.php @@ -125,6 +125,14 @@ private function _getRows($reader) } } catch (\Throwable $e) {} + // Support league/csv v9 syntax + try { + if (!$array) { + $reader->setHeaderOffset(0); + $array = $reader->getRecords(); + } + } catch (\Throwable $e) {} + return $array; }