@@ -109,6 +109,9 @@ |
||
109 | 109 | } |
110 | 110 | } |
111 | 111 | |
112 | + /** |
|
113 | + * @param null|string $contentType |
|
114 | + */ |
|
112 | 115 | private function isNotAnEmptyDeleteRequestWithNoSetContentType(string $method, $content, ?string $contentType): bool |
113 | 116 | { |
114 | 117 | return false === ('DELETE' === $method && empty($content) && empty($contentType)); |
@@ -39,6 +39,9 @@ |
||
39 | 39 | $this->map[] = [$requestMatcher, $options]; |
40 | 40 | } |
41 | 41 | |
42 | + /** |
|
43 | + * @param string $header |
|
44 | + */ |
|
42 | 45 | public function getBest($header, array $priorities = []): ?AcceptHeader |
43 | 46 | { |
44 | 47 | $request = $this->getRequest(); |
@@ -210,6 +210,7 @@ |
||
210 | 210 | * configuration if the form instance has errors. |
211 | 211 | * |
212 | 212 | * @param string|false|null |
213 | + * @param string $content |
|
213 | 214 | */ |
214 | 215 | private function getStatusCode(View $view, $content = null): int |
215 | 216 | { |