@@ -47,6 +47,7 @@ discard block |
||
| 47 | 47 | * The best format is also determined in function of the bundle configuration. |
| 48 | 48 | * |
| 49 | 49 | * @throws StopFormatListenerException |
| 50 | + * @param string $header |
|
| 50 | 51 | */ |
| 51 | 52 | public function getBest($header, array $priorities = []) |
| 52 | 53 | { |
@@ -108,7 +109,7 @@ discard block |
||
| 108 | 109 | } |
| 109 | 110 | |
| 110 | 111 | /** |
| 111 | - * @param array $values |
|
| 112 | + * @param string[] $values |
|
| 112 | 113 | * |
| 113 | 114 | * @return array |
| 114 | 115 | */ |
@@ -148,6 +148,7 @@ |
||
| 148 | 148 | * This code comes from Symfony and should be synchronized on a regular basis |
| 149 | 149 | * see src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php |
| 150 | 150 | * |
| 151 | + * @param null|string $startObLevel |
|
| 151 | 152 | * @return string |
| 152 | 153 | */ |
| 153 | 154 | private function getAndCleanOutputBuffering($startObLevel) |
@@ -133,9 +133,9 @@ |
||
| 133 | 133 | /** |
| 134 | 134 | * Check if the Request is not a DELETE with no content and no Content-Type. |
| 135 | 135 | * |
| 136 | - * @param $method |
|
| 136 | + * @param string $method |
|
| 137 | 137 | * @param $content |
| 138 | - * @param $contentType |
|
| 138 | + * @param null|string $contentType |
|
| 139 | 139 | * |
| 140 | 140 | * @return bool |
| 141 | 141 | */ |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use FOS\RestBundle\Normalizer\Exception\NormalizationException; |
| 18 | 18 | use Symfony\Component\HttpFoundation\ParameterBag; |
| 19 | 19 | use Symfony\Component\HttpFoundation\Request; |
| 20 | -use Symfony\Component\HttpKernel\Event\GetResponseEvent; |
|
| 21 | 20 | use Symfony\Component\HttpKernel\Event\RequestEvent; |
| 22 | 21 | use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; |
| 23 | 22 | use Symfony\Component\HttpKernel\Exception\UnsupportedMediaTypeHttpException; |