Skip to content

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

Merged
oliverklee merged 1 commit into
mainfrom
task/nullable
Jul 4, 2024
Merged

[TASK] Ensure PHP 8.4 compatibility for nullable parameters#643
oliverklee merged 1 commit into
mainfrom
task/nullable

Conversation

@oliverklee

Copy link
Copy Markdown
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

JakeQZ commented Jul 4, 2024

Copy link
Copy Markdown
Collaborator

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