Skip to content

Commit cdb68f0

Browse files
authored
Merge pull request #182 from mogic-le/php84-implicit-nullable
2 parents 3cf9860 + 1711e2f commit cdb68f0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Classes/Driver/AmazonS3Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class AmazonS3Driver extends AbstractHierarchicalFilesystemDriver implements Str
184184
* @param array $configuration
185185
* @param S3Client $s3Client
186186
*/
187-
public function __construct(array $configuration = [], $s3Client = null, EventDispatcherInterface $eventDispatcher = null)
187+
public function __construct(array $configuration = [], $s3Client = null, ?EventDispatcherInterface $eventDispatcher = null)
188188
{
189189
parent::__construct($configuration);
190190
$this->eventDispatcher = $eventDispatcher ?? GeneralUtility::makeInstance(EventDispatcherInterface::class);

Classes/S3Adapter/AbstractS3Adapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class AbstractS3Adapter
3232
* AbstractS3Adapter constructor.
3333
* @param S3Client $s3Client
3434
*/
35-
public function __construct(S3Client $s3Client = null)
35+
public function __construct(?S3Client $s3Client = null)
3636
{
3737
$this->s3Client = $s3Client;
3838
}

0 commit comments

Comments
 (0)