Skip to content

Commit 49cfb02

Browse files
Merge branch '6.3' into 6.4
* 6.3: minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench) Fix bad merge List CS fix in .git-blame-ignore-revs Fix implicitly-required parameters List CS fix in .git-blame-ignore-revs Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
1 parent d32f589 commit 49cfb02

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

EventListener/PsrResponseListener.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class PsrResponseListener implements EventSubscriberInterface
2828
{
2929
private readonly HttpFoundationFactoryInterface $httpFoundationFactory;
3030

31-
public function __construct(HttpFoundationFactoryInterface $httpFoundationFactory = null)
31+
public function __construct(?HttpFoundationFactoryInterface $httpFoundationFactory = null)
3232
{
3333
$this->httpFoundationFactory = $httpFoundationFactory ?? new HttpFoundationFactory();
3434
}

Factory/PsrHttpFactory.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ class PsrHttpFactory implements HttpMessageFactoryInterface
4141
private readonly ResponseFactoryInterface $responseFactory;
4242

4343
public function __construct(
44-
ServerRequestFactoryInterface $serverRequestFactory = null,
45-
StreamFactoryInterface $streamFactory = null,
46-
UploadedFileFactoryInterface $uploadedFileFactory = null,
47-
ResponseFactoryInterface $responseFactory = null,
44+
?ServerRequestFactoryInterface $serverRequestFactory = null,
45+
?StreamFactoryInterface $streamFactory = null,
46+
?UploadedFileFactoryInterface $uploadedFileFactory = null,
47+
?ResponseFactoryInterface $responseFactory = null,
4848
) {
4949
if (null === $serverRequestFactory || null === $streamFactory || null === $uploadedFileFactory || null === $responseFactory) {
5050
$psr17Factory = match (true) {

Factory/UploadedFile.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(
4848
);
4949
}
5050

51-
public function move(string $directory, string $name = null): File
51+
public function move(string $directory, ?string $name = null): File
5252
{
5353
if (!$this->isValid() || $this->test) {
5454
return parent::move($directory, $name);

0 commit comments

Comments
 (0)