Skip to content

Commit 689f1d9

Browse files
committed
minor #54906 PHP 8.4 nullability deprecation (sam-bee)
This PR was merged into the 7.1 branch. Discussion ---------- PHP 8.4 nullability deprecation ### PHP 8.4 deprecation of implicit nullability. | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | | License | MIT Because PHP 8.4 is adding deprecation warnings for non-nullable parameters with null default, change typehints. This relates to the [implicit nullability RFC](https://wiki.php.net/rfc/deprecate-implicitly-nullable-types) in PHP 8.4. Commits ------- 8c3511b978 Because PHP 8.4 is adding deprecation warnings for non-nullable parameters with null default, change typehints
2 parents 329d2b5 + 0254dc3 commit 689f1d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Validation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static function createCallable(Constraint|ValidatorInterface|null $constr
4040
/**
4141
* Creates a callable that returns true/false instead of throwing validation exceptions.
4242
*
43-
* @return callable(mixed $value, ConstraintViolationListInterface &$violations = null): bool
43+
* @return callable(mixed $value, ?ConstraintViolationListInterface &$violations = null): bool
4444
*/
4545
public static function createIsValidCallable(Constraint|ValidatorInterface|null $constraintOrValidator = null, Constraint ...$constraints): callable
4646
{

0 commit comments

Comments
 (0)