Skip to content

Commit d8e1575

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 ------- 8c3511b Because PHP 8.4 is adding deprecation warnings for non-nullable parameters with null default, change typehints
2 parents a797985 + 8c3511b commit d8e1575

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy