Support PHP 8.2 league/csv

Created on 5 December 2023, 12 months ago
Updated 2 January 2024, 11 months ago

Problem/Motivation

When using PHP 8.2 and the latest version of league/csv, an error is thrown due to the array structure of the header.

Steps to reproduce

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).

Proposed resolution

Check for the header first

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇺🇸United States pookmish

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024