Skip to content

Fix: addresses implicit nullability for PHP 8.4 compatibility #20

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

Merged
merged 2 commits into from
Jun 16, 2025

Conversation

JasonTheAdams
Copy link
Member

As of PHP 8.4 parameters cannot be implicitly nullable. This addresses that by explicitly making said parameters nullable. Note that this is technically not a breaking signature change since any 3rd party code implementing the ValidationRule interface is covariant on the parameter.

Copy link
Contributor

@jonwaldstein jonwaldstein left a comment

Choose a reason for hiding this comment

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

Awesome, thank you!

@JasonTheAdams JasonTheAdams merged commit e3c4e2f into develop Jun 16, 2025
1 check passed
@JasonTheAdams JasonTheAdams deleted the fix/php-8.4-compatibility branch June 16, 2025 15:03
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