Skip to content

Commit

Permalink
fix PHP 8.4 deprecation error (implicitly nullable parameter)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbolli authored and oscarotero committed Nov 21, 2024
1 parent 9a4ff05 commit 173b706
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ public static function getUploadedFileFactory(): UploadedFileFactoryInterface

public static function createUploadedFile(
StreamInterface $stream,
int $size = null,
?int $size = null,
int $error = \UPLOAD_ERR_OK,
string $filename = null,
string $mediaType = null
?string $filename = null,
?string $mediaType = null
): UploadedFileInterface {
return self::getUploadedFileFactory()->createUploadedFile($stream, $size, $error, $filename, $mediaType);
}
Expand Down

0 comments on commit 173b706

Please sign in to comment.