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

PHP 8.4 | FeatureNode: fix implicitly nullable parameter #262

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Oct 1, 2024

Follow up to #258

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

This commit fixes the last instance of that in the codebase.

Also note that this was effectively an "optional parameter before a required one", so the default value of null needs to be removed as well.

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

@heiglandreas Would you like to look over ? (seeing that you pulled the prior PR)

Follow up to 258

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

This commit fixes the last instance of that in the codebase.

Also note that this was effectively an "optional parameter before a required one", so the default value of `null` needs to be removed as well.

Ref: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
@stof stof merged commit ea42d45 into Behat:master Oct 1, 2024
9 checks passed
@jrfnl jrfnl deleted the feature/php-8.4-fix-implicitly-nullable branch October 1, 2024 15:48
Copy link
Contributor

@heiglandreas heiglandreas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

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