--- vendor/symfony/http-foundation/Request.php.orig 2020-04-06 22:12:28.776970376 +0200 +++ ../../nya/Request.php 2020-04-06 13:00:06.805459143 +0200 @@ -417,7 +417,7 @@ * to keep BC with an existing system. It should not be used for any * other purpose. */ - public static function setFactory(?callable $callable) + public static function setFactory(callable $callable) { self::$requestFactory = $callable; } @@ -646,7 +646,7 @@ * * @return string A normalized query string for the Request */ - public static function normalizeQueryString(?string $qs) + public static function normalizeQueryString(string $qs) { if ('' === ($qs ?? '')) { return ''; @@ -1305,7 +1305,7 @@ * * @return string|null The format (null if not found) */ - public function getFormat(?string $mimeType) + public function getFormat(string $mimeType) { $canonicalMimeType = null; if (false !== $pos = strpos($mimeType, ';')) { @@ -1333,7 +1333,7 @@ * * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type) */ - public function setFormat(?string $format, $mimeTypes) + public function setFormat(string $format, $mimeTypes) { if (null === static::$formats) { static::initializeFormats(); @@ -1355,7 +1355,7 @@ * * @return string|null The request format */ - public function getRequestFormat(?string $default = 'html') + public function getRequestFormat($default = 'html') { if (null === $this->format) { $this->format = $this->attributes->get('_format'); @@ -1367,7 +1367,7 @@ /** * Sets the request format. */ - public function setRequestFormat(?string $format) + public function setRequestFormat($format) { $this->format = $format; } @@ -1565,7 +1565,7 @@ * Note that if you use this method, you should send the "Vary: Accept" header * in the response to prevent any issues with intermediary HTTP caches. */ - public function getPreferredFormat(?string $default = 'html'): ?string + public function getPreferredFormat(string $default = 'html'): string { if (null !== $this->preferredFormat || null !== $this->preferredFormat = $this->getRequestFormat(null)) { return $this->preferredFormat; @@ -1929,7 +1929,7 @@ * Returns the prefix as encoded in the string when the string starts with * the given prefix, null otherwise. */ - private function getUrlencodedPrefix(string $string, string $prefix): ?string + private function getUrlencodedPrefix(string $string, string $prefix): string { if (0 !== strpos(rawurldecode($string), $prefix)) { return null;