- Issue created by @dave.mentens
- Merge request !1Issue #3501715: Correct header array for league/csv and PHP 8.2. → (Open) created by dave.mentens
When using PHP 8.2 and the latest version of league/csv, an error is thrown due to the array structure of the header.
Enable php 8.2
create a simple csv with a header row and a single record
Attempt to import
Observe the error in the database logs like:
League\Csv\SyntaxError: The header mapper indexes should only contain positive integer or 0. in League\Csv\Reader->computeHeader() (line 448 of vendor/league/csv/src/Reader.php).
Check for the header first. Same fix as in the CSV source: https://www.drupal.org/project/migrate_source_csv/issues/3406342 🐛 Support PHP 8.2 league/csv Fixed
Active
1.0
Code