Skip to content

Commit 173b706

Browse files
mbollioscarotero
authored andcommitted
fix PHP 8.4 deprecation error (implicitly nullable parameter)
1 parent 9a4ff05 commit 173b706

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Factory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ public static function getUploadedFileFactory(): UploadedFileFactoryInterface
9191

9292
public static function createUploadedFile(
9393
StreamInterface $stream,
94-
int $size = null,
94+
?int $size = null,
9595
int $error = \UPLOAD_ERR_OK,
96-
string $filename = null,
97-
string $mediaType = null
96+
?string $filename = null,
97+
?string $mediaType = null
9898
): UploadedFileInterface {
9999
return self::getUploadedFileFactory()->createUploadedFile($stream, $size, $error, $filename, $mediaType);
100100
}

0 commit comments

Comments
 (0)