Skip to content

fix(translator): Replace Symfony CsvFileLoader - #147

Open
mcaskill wants to merge 1 commit into
mainfrom
feature/replace-symfony-csv-file-loader
Open

mcaskill wants to merge 1 commit into
mainfrom
feature/replace-symfony-csv-file-loader

Conversation

@mcaskill

Copy link
Copy Markdown
Collaborator

Add custom CsvFileLoader based on Symfony v8.1.12 to resolve PHP 8 deprecations:

As well as fix issues with empty lines returning [ null ] instead of being skipped.

Add custom `CsvFileLoader` based on Symfony v8.1.12 to resolve PHP 8 deprecations:

- PHP 8.4: `$escape` parameter of `SplFileObject::setCsvControl()` must be an empty string.
- PHP 8.6: CSV methods of `SplFileObject` to be removed in PHP 9.

As well as fix issues with empty lines returning `[ null ]` instead of being skipped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant