Skip to content

Commit e946f12

Browse files
authored
make return type of request->getUploadedFile nullable (#3)
1 parent ddee029 commit e946f12

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"issues": "https://github.com/swlib/http/issues"
2020
},
2121
"require": {
22-
"php": ">=7.0",
22+
"php": ">=7.1",
2323
"psr/http-message": "~1.0"
2424
},
2525
"autoload": {

src/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public function withParsedBody($data): self
216216
return $this;
217217
}
218218

219-
public function getUploadedFile(string $name): UploadedFileInterface
219+
public function getUploadedFile(string $name): ?UploadedFileInterface
220220
{
221221
return $this->uploadedFiles[$name] ?? null;
222222
}

0 commit comments

Comments
 (0)