← All changes
|
vendor/psr/http-message/src/UploadedFileInterface.php
+6
-6
3.1.0
→
6.3.0
View file →
| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | * @return StreamInterface Stream representation of the uploaded file. |
| 28 | 28 | * @throws \RuntimeException in cases when no stream is available or can be |
| 29 | 29 | * created. |
| 30 | 30 | */ |
| 31 | - public function getStream(); | |
| 31 | + public function getStream(): StreamInterface; | |
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * Move the uploaded file to a new location. |
| 35 | 35 | * |
| @@ -61,9 +61,9 @@ | ||
| 61 | 61 | * @throws \InvalidArgumentException if the $targetPath specified is invalid. |
| 62 | 62 | * @throws \RuntimeException on any error during the move operation, or on |
| 63 | 63 | * the second or subsequent call to the method. |
| 64 | 64 | */ |
| 65 | - public function moveTo($targetPath); | |
| 65 | + public function moveTo(string $targetPath): void; | |
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | 68 | * Retrieve the file size. |
| 69 | 69 | * |
| @@ -72,9 +72,9 @@ | ||
| 72 | 72 | * on the actual size transmitted. |
| 73 | 73 | * |
| 74 | 74 | * @return int|null The file size in bytes or null if unknown. |
| 75 | 75 | */ |
| 76 | - public function getSize(); | |
| 76 | + public function getSize(): ?int; | |
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | 79 | * Retrieve the error associated with the uploaded file. |
| 80 | 80 | * |
| @@ -88,9 +88,9 @@ | ||
| 88 | 88 | * |
| 89 | 89 | * @see http://php.net/manual/en/features.file-upload.errors.php |
| 90 | 90 | * @return int One of PHP's UPLOAD_ERR_XXX constants. |
| 91 | 91 | */ |
| 92 | - public function getError(); | |
| 92 | + public function getError(): int; | |
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | 95 | * Retrieve the filename sent by the client. |
| 96 | 96 | * |
| @@ -103,9 +103,9 @@ | ||
| 103 | 103 | * |
| 104 | 104 | * @return string|null The filename sent by the client or null if none |
| 105 | 105 | * was provided. |
| 106 | 106 | */ |
| 107 | - public function getClientFilename(); | |
| 107 | + public function getClientFilename(): ?string; | |
| 108 | 108 | |
| 109 | 109 | /** |
| 110 | 110 | * Retrieve the media type sent by the client. |
| 111 | 111 | * |
| @@ -118,6 +118,6 @@ | ||
| 118 | 118 | * |
| 119 | 119 | * @return string|null The media type sent by the client or null if none |
| 120 | 120 | * was provided. |
| 121 | 121 | */ |
| 122 | - public function getClientMediaType(); | |
| 122 | + public function getClientMediaType(): ?string; | |
| 123 | 123 | } |