Skip to content

Conversation

@jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Aug 21, 2024

PHP 8.4 deprecates implicitly nullable parameters, i.e. typed parameter with a null default value, which are not explicitly declared as nullable.

This commit fixes all found instances of that in the PHPSpec codebase.

Includes updating the documentation to match (where relevant, i.e. only existing documentation has been touched).

Ref: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types

PHP 8.4 deprecates implicitly nullable parameters, i.e. typed parameter with a `null` default value, which are not explicitly declared as nullable.

This commit fixes all found instances of that in the PHPSpec codebase.

Includes updating the documentation to match (where relevant, i.e. only existing documentation has been touched).

Ref: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
@jrfnl
Copy link
Contributor Author

jrfnl commented Aug 21, 2024

Similar to #1472, but for the main branch. Pulled separately as merging the 7.x fix into main would cause a lot of conflicts otherwise.

@jakzal
Copy link
Member

jakzal commented Nov 5, 2024

Merged 7.5 into main: #1482

Is there anything in this PR that's missing from the one that targeted 7.5?

@jrfnl
Copy link
Contributor Author

jrfnl commented Dec 10, 2024

@jakzal I honestly can't remember, it was nearly four months ago when I created the PR.

@jrfnl
Copy link
Contributor Author

jrfnl commented Dec 10, 2024

@jakzal Want me to rebase it to see if there's anything left after that ?

@MarcelloDuarte MarcelloDuarte merged commit 62822ee into phpspec:main May 17, 2025
@jrfnl jrfnl deleted the 8.x/php-8.4-fix-implicitly-nullable branch May 17, 2025 16:38
@MarcelloDuarte
Copy link
Member

Thanks @jrfnl

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.

3 participants