Skip to content
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

Add support for PHP 8.4 (drop <7.1) #33

Merged
merged 3 commits into from
Oct 11, 2024
Merged

Conversation

bnf
Copy link
Member

@bnf bnf commented Oct 9, 2024

This PR is an alternative to #32.
It drops support for PHP <7.1 in order to support PHP 8.4 deprecation free without requiring arguments to be removed or added.
(Changing arguments caused issues in previous changes, because old and new code is mixed during composer update withing one process)

This is in preparation for PHP 8.4 support
(deprecated implicitly nullable parameters).
Defaulting to null without being nullable (?Foo) is deprecated for typed
parameters in PHP 8.4, therefore nullable is now specified explicitly.
This change requires at least PHP 7.1 (which has been made a minimum
with the parent commit).

Additional the call to str_getcsv is adapted to set all optional
arguments as the defaults will change in PHP >= 9 and PHP 8.4
deprecated the omission of the optional arguments.

Fixes TYPO3#31
Also drop prophecy workarounds since PHP 8.2 compatibility
has been enabled upstream.
@bnf
Copy link
Member Author

bnf commented Oct 9, 2024

Run in TYPO3 testing infrastructure: https://git.typo3.org/typo3/CI/cms/-/jobs/3846652

src/Config.php Show resolved Hide resolved
@helhum helhum merged commit cf2aeba into TYPO3:main Oct 11, 2024
9 checks passed
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.

4 participants