@@ -40,6 +40,9 @@ |
||
| 40 | 40 | $this->map[] = [$requestMatcher, $options]; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @param string $header |
|
| 45 | + */ |
|
| 43 | 46 | public function getBest($header, array $priorities = []) |
| 44 | 47 | { |
| 45 | 48 | $request = $this->getRequest(); |
@@ -85,6 +85,7 @@ |
||
| 85 | 85 | * |
| 86 | 86 | * This code comes from Symfony and should be synchronized on a regular basis |
| 87 | 87 | * see src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php |
| 88 | + * @param null|string $startObLevel |
|
| 88 | 89 | */ |
| 89 | 90 | private function getAndCleanOutputBuffering($startObLevel): string |
| 90 | 91 | { |
@@ -112,6 +112,9 @@ |
||
| 112 | 112 | } |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | + /** |
|
| 116 | + * @param null|string $contentType |
|
| 117 | + */ |
|
| 115 | 118 | private function isNotAnEmptyDeleteRequestWithNoSetContentType(string $method, $content, $contentType): bool |
| 116 | 119 | { |
| 117 | 120 | return false === ('DELETE' === $method && empty($content) && empty($contentType)); |