@@ -814,7 +814,7 @@ discard block |
||
| 814 | 814 | * These values MAY be prepared from $_FILES or the message body during |
| 815 | 815 | * instantiation, or MAY be injected via withUploadedFiles(). |
| 816 | 816 | * |
| 817 | - * @return array |
|
| 817 | + * @return UploadedFileInterface[] |
|
| 818 | 818 | */ |
| 819 | 819 | public function getUploadedFiles() |
| 820 | 820 | { |
@@ -1142,7 +1142,7 @@ discard block |
||
| 1142 | 1142 | * @param string $key |
| 1143 | 1143 | * @param mixed $default |
| 1144 | 1144 | * |
| 1145 | - * @return mixed |
|
| 1145 | + * @return null|string |
|
| 1146 | 1146 | */ |
| 1147 | 1147 | public function getParsedBodyParam($key, $default = null) |
| 1148 | 1148 | { |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | protected $callable; |
| 81 | 81 | |
| 82 | 82 | /** |
| 83 | - * @param string|string[] $methods The route HTTP methods |
|
| 83 | + * @param string[] $methods The route HTTP methods |
|
| 84 | 84 | * @param string $pattern The route pattern |
| 85 | 85 | * @param callable $callable The route callable |
| 86 | 86 | * @param RouteGroup[] $groups The parent route groups |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | /** |
| 112 | 112 | * Render exception or error as HTML. |
| 113 | 113 | * |
| 114 | - * @param Exception|\Error $exception |
|
| 114 | + * @param Exception $exception |
|
| 115 | 115 | * |
| 116 | 116 | * @return string |
| 117 | 117 | * |
@@ -262,7 +262,7 @@ |
||
| 262 | 262 | * code to 302 to mimic what PHP does. See https://github.com/slimphp/Slim/issues/1730 |
| 263 | 263 | * |
| 264 | 264 | * @param string $name Case-insensitive header field name. |
| 265 | - * @param string|string[] $value Header value(s). |
|
| 265 | + * @param string $value Header value(s). |
|
| 266 | 266 | * |
| 267 | 267 | * @return static |
| 268 | 268 | * |
@@ -11,7 +11,6 @@ discard block |
||
| 11 | 11 | use Closure; |
| 12 | 12 | use Exception; |
| 13 | 13 | use FastRoute\Dispatcher; |
| 14 | -use Interop\Container\Exception\ContainerException; |
|
| 15 | 14 | use InvalidArgumentException; |
| 16 | 15 | use Psr\Container\ContainerInterface; |
| 17 | 16 | use Psr\Http\Message\RequestInterface; |
@@ -19,7 +18,6 @@ discard block |
||
| 19 | 18 | use Psr\Http\Message\ServerRequestInterface; |
| 20 | 19 | use Psr\Http\Message\UriInterface; |
| 21 | 20 | use RuntimeException; |
| 22 | -use Slim\Exception\InvalidMethodException; |
|
| 23 | 21 | use Slim\Exception\MethodNotAllowedException; |
| 24 | 22 | use Slim\Exception\NotFoundException; |
| 25 | 23 | use Slim\Exception\SlimException; |