Skip to content

Commit 8c3511b

Browse files
committed
Because PHP 8.4 is adding deprecation warnings for non-nullable parameters with null default, change typehints
1 parent 5a00a8b commit 8c3511b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Validator/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
{

src/Symfony/Contracts/HttpClient/Test/TestHttpServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TestHttpServer
2121
/**
2222
* @param string|null $workingDirectory
2323
*/
24-
public static function start(int $port = 8057/* , string $workingDirectory = null */): Process
24+
public static function start(int $port = 8057/* , ?string $workingDirectory = null */): Process
2525
{
2626
$workingDirectory = \func_get_args()[1] ?? __DIR__.'/Fixtures/web';
2727

0 commit comments

Comments
 (0)