@@ -14,7 +14,6 @@ discard block |
||
| 14 | 14 | use Throwable; |
| 15 | 15 | use Closure; |
| 16 | 16 | use InvalidArgumentException; |
| 17 | -use Psr\Http\Message\RequestInterface; |
|
| 18 | 17 | use Psr\Http\Message\ServerRequestInterface; |
| 19 | 18 | use Psr\Http\Message\ResponseInterface; |
| 20 | 19 | use Interop\Container\ContainerInterface; |
@@ -26,7 +25,6 @@ discard block |
||
| 26 | 25 | use Slim\Http\Headers; |
| 27 | 26 | use Slim\Http\Body; |
| 28 | 27 | use Slim\Http\Request; |
| 29 | -use Slim\Interfaces\Http\EnvironmentInterface; |
|
| 30 | 28 | use Slim\Interfaces\RouteGroupInterface; |
| 31 | 29 | use Slim\Interfaces\RouteInterface; |
| 32 | 30 | use Slim\Interfaces\RouterInterface; |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | /** |
| 63 | 63 | * Return a response for application/json content not found |
| 64 | 64 | * |
| 65 | - * @return ResponseInterface |
|
| 65 | + * @return string |
|
| 66 | 66 | */ |
| 67 | 67 | protected function renderJsonNotFoundOutput() |
| 68 | 68 | { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * Return a response for xml content not found |
| 74 | 74 | * |
| 75 | - * @return ResponseInterface |
|
| 75 | + * @return string |
|
| 76 | 76 | */ |
| 77 | 77 | protected function renderXmlNotFoundOutput() |
| 78 | 78 | { |
@@ -811,7 +811,7 @@ discard block |
||
| 811 | 811 | * These values MAY be prepared from $_FILES or the message body during |
| 812 | 812 | * instantiation, or MAY be injected via withUploadedFiles(). |
| 813 | 813 | * |
| 814 | - * @return array An array tree of UploadedFileInterface instances; an empty |
|
| 814 | + * @return UploadedFileInterface[] An array tree of UploadedFileInterface instances; an empty |
|
| 815 | 815 | * array MUST be returned if no data is present. |
| 816 | 816 | */ |
| 817 | 817 | public function getUploadedFiles() |
@@ -1144,7 +1144,7 @@ discard block |
||
| 1144 | 1144 | * @param string $key |
| 1145 | 1145 | * @param mixed $default |
| 1146 | 1146 | * |
| 1147 | - * @return mixed |
|
| 1147 | + * @return null|string |
|
| 1148 | 1148 | */ |
| 1149 | 1149 | public function getParsedBodyParam($key, $default = null) |
| 1150 | 1150 | { |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use Psr\Http\Message\StreamInterface; |
| 18 | 18 | use Slim\Collection; |
| 19 | 19 | use Slim\Exception\InvalidMethodException; |
| 20 | -use Slim\Exception\MethodNotAllowedException; |
|
| 21 | 20 | use Slim\Interfaces\Http\HeadersInterface; |
| 22 | 21 | |
| 23 | 22 | /** |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | /** |
| 82 | 82 | * Create new route |
| 83 | 83 | * |
| 84 | - * @param string|string[] $methods The route HTTP methods |
|
| 84 | + * @param string[] $methods The route HTTP methods |
|
| 85 | 85 | * @param string $pattern The route pattern |
| 86 | 86 | * @param callable $callable The route callable |
| 87 | 87 | * @param RouteGroup[] $groups The parent route groups |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use InvalidArgumentException; |
| 14 | 14 | use Psr\Http\Message\ServerRequestInterface; |
| 15 | 15 | use Psr\Http\Message\ResponseInterface; |
| 16 | -use Slim\Exception\SlimException; |
|
| 17 | 16 | use Slim\Handlers\Strategies\RequestResponse; |
| 18 | 17 | use Slim\Interfaces\InvocationStrategyInterface; |
| 19 | 18 | use Slim\Interfaces\RouteInterface; |
@@ -199,7 +199,7 @@ |
||
| 199 | 199 | * |
| 200 | 200 | * @param string[] $methods Array of HTTP methods |
| 201 | 201 | * @param string $pattern The route pattern |
| 202 | - * @param callable $handler The route callable |
|
| 202 | + * @param callable $callable |
|
| 203 | 203 | * |
| 204 | 204 | * @return \Slim\Interfaces\RouteInterface |
| 205 | 205 | */ |