Skip to content

[TASK] Explicitly provide all fgetcsv() arguments #624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 29, 2024
Merged

[TASK] Explicitly provide all fgetcsv() arguments #624

merged 2 commits into from
Sep 29, 2024

Conversation

sbuerk
Copy link
Collaborator

@sbuerk sbuerk commented Sep 29, 2024

With [1] the 5th parameter $escape of fgetcsv() must
be provided either positional or using named arguments or a
E_DEPRECATED will be emitted since PHP 8.4.0 RC1 [2].

This change provide now all five parameter for fgetcsv()
calls and thus using the positional approach to allow easier
backporting to older TYPO3 version where named arguements are
not usable.

[1] php/php-src#15569
[2] https://github.com/php/php-src/blob/ebee8df27ed/UPGRADING#L617-L622

Releases: main, 8, 7, 6

Used command(s):

> composer require --dev \
    "phpstan/phpstan":"^1.12.5" \
    "phpstan/phpstan-phpunit":"^1.4.0"
> Build/Scripts/runTests.sh -s phpstanGenerateBaseline
With [1] the 5th parameter `$escape` of `fgetcsv()` must
be provided either positional or using named arguments or a
E_DEPRECATED will be emitted since `PHP 8.4.0 RC1` [2].

This change provide now all five parameter for `fgetcsv()`
calls and thus using the positional approach to allow easier
backporting to older TYPO3 version where named arguements are
not usable.

[1] php/php-src#15569
[2] https://github.com/php/php-src/blob/ebee8df27ed/UPGRADING#L617-L622

Releases: main, 8, 7, 6
@sbuerk sbuerk merged commit 440e6b5 into 6 Sep 29, 2024
16 checks passed
@sbuerk sbuerk deleted the 6-php84-1 branch September 29, 2024 14:23
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