Skip to content

Commit

Permalink
Merge pull request #17 from alexandre-daubois/explicit-nullable-type
Browse files Browse the repository at this point in the history
Add explicit nullable type and bump minimal PHP version to 7.1
  • Loading branch information
shadowhand authored Apr 15, 2024
2 parents 7037f4b + 2e735aa commit 2b4765f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"source": "https://github.com/php-fig/http-factory"
},
"require": {
"php": ">=7.0.0",
"php": ">=7.1",
"psr/http-message": "^1.0 || ^2.0"
},
"autoload": {
Expand Down
12 changes: 6 additions & 6 deletions src/UploadedFileFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ interface UploadedFileFactoryInterface
*
* @param StreamInterface $stream Underlying stream representing the
* uploaded file content.
* @param int $size in bytes
* @param int|null $size in bytes
* @param int $error PHP file upload error
* @param string $clientFilename Filename as provided by the client, if any.
* @param string $clientMediaType Media type as provided by the client, if any.
* @param string|null $clientFilename Filename as provided by the client, if any.
* @param string|null $clientMediaType Media type as provided by the client, if any.
*
* @return UploadedFileInterface
*
* @throws \InvalidArgumentException If the file resource is not readable.
*/
public function createUploadedFile(
StreamInterface $stream,
int $size = null,
?int $size = null,
int $error = \UPLOAD_ERR_OK,
string $clientFilename = null,
string $clientMediaType = null
?string $clientFilename = null,
?string $clientMediaType = null
): UploadedFileInterface;
}

0 comments on commit 2b4765f

Please sign in to comment.