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

Fix implicitly null parameter types in templates #177

Merged

Conversation

edsrzf
Copy link
Contributor

@edsrzf edsrzf commented Aug 31, 2024

Overview

Fix implicitly null parameter types in templates.

What this PR does / why we need it

In PHP 8.4, implicitly nullable parameter types will be deprecated. Read the RFC for more details. This change will prevent a deprecation warning once PHP 8.4 is released. It has no effect on earlier PHP versions.

Instances of this were already fixed via php-cs-fixer in non-templated code, so this is also more consistent within the code base.

Does this PR introduce a user-facing change?

Prevent deprecation warnings on PHP 8.4.

This will trigger deprecation warnings in PHP 8.4.
Copy link
Member

@sagikazarmark sagikazarmark left a comment

Choose a reason for hiding this comment

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

Thanks!

@sagikazarmark sagikazarmark merged commit a572ad1 into twirphp:master Sep 1, 2024
10 checks passed
@edsrzf edsrzf deleted the template-implicit-nullable-param branch September 18, 2024 01:00
@edsrzf
Copy link
Contributor Author

edsrzf commented Sep 18, 2024

@sagikazarmark could we please get a release with this change? No massive rush, but it would be great to have before PHP 8.4 is released in about two months. Thanks!

@sagikazarmark
Copy link
Member

Sure! Tagged 0.12.0

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.

2 participants