Skip to content

[TASK] Ensure PHP 8.4 compatibility for nullable parameters #643

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 1 commit into from
Jul 4, 2024

Conversation

oliverklee
Copy link
Contributor

Ensure that parameters that have a null default value also have null as part of their type declarations.

Also ensure a uniform notation for nullable types.

https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated

Fixes #634

Ensure that parameters that have a `null` default value also
have `null` as part of their type declarations.

Also ensure a uniform notation for nullable types.

https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated

Fixes #634
@oliverklee oliverklee merged commit 7276b93 into main Jul 4, 2024
18 checks passed
@oliverklee oliverklee deleted the task/nullable branch July 4, 2024 09:37
@JakeQZ
Copy link
Contributor

JakeQZ commented Jul 4, 2024

I just reviewed this in the sister project, and found no need for the PHP-CS-Fixer config change. I am now confused.

oliverklee added a commit that referenced this pull request Oct 27, 2024
This fixes compatibility with PHP 8.4.

This is the last part of the v8.x backport of #643.
JakeQZ pushed a commit that referenced this pull request Oct 27, 2024
This fixes compatibility with PHP 8.4.

This is the last part of the v8.x backport of #643.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a PHP-CS-Fixer rule to avoid deprecation warnings in PHP 8.4
3 participants