Skip to content

Commit 0254dc3

Browse files
committed
Because PHP 8.4 is adding deprecation warnings for non-nullable parameters with null default, change typehints
1 parent 061a357 commit 0254dc3

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)