Skip to content

Conversation

oliverklee
Copy link
Collaborator

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
@oliverklee oliverklee deleted the task/nullable branch July 4, 2024 09:37
@JakeQZ
Copy link
Collaborator

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