Skip to content

Fix: addresses implicit nullability for PHP 8.4 compatibility#20

Merged
JasonTheAdams merged 2 commits intodevelopfrom
fix/php-8.4-compatibility
Jun 16, 2025
Merged

Fix: addresses implicit nullability for PHP 8.4 compatibility#20
JasonTheAdams merged 2 commits intodevelopfrom
fix/php-8.4-compatibility

Conversation

@JasonTheAdams
Copy link
Contributor

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