diff --git a/src/Symfony/Component/HttpKernel/EventListener/LocaleListener.php b/src/Symfony/Component/HttpKernel/EventListener/LocaleListener.php index aadc7b4b3d..b09a6c76a2 100644 --- a/src/Symfony/Component/HttpKernel/EventListener/LocaleListener.php +++ b/src/Symfony/Component/HttpKernel/EventListener/LocaleListener.php @@ -33,10 +33,6 @@ class LocaleListener implements EventSubscriberInterface private $defaultLocale; private $requestStack; - /** - * @param string $defaultLocale The default locale - * @param RequestContextAwareInterface|null $router The router - */ public function __construct(RequestStack $requestStack, string $defaultLocale = 'en', RequestContextAwareInterface $router = null) { $this->defaultLocale = $defaultLocale; diff --git a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php index 82fc6bb143..06218e002c 100644 --- a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php +++ b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php @@ -456,8 +456,8 @@ class HttpCache implements HttpKernelInterface, TerminableInterface * All backend requests (cache passes, fetches, cache validations) * run through this method. * - * @param bool $catch Whether to catch exceptions or not - * @param Response $entry A Response instance (the stale entry if present, null otherwise) + * @param bool $catch Whether to catch exceptions or not + * @param Response|null $entry A Response instance (the stale entry if present, null otherwise) * * @return Response A Response instance */ diff --git a/src/Symfony/Component/HttpKernel/HttpKernel.php b/src/Symfony/Component/HttpKernel/HttpKernel.php index 31546122ac..33548c8d08 100644 --- a/src/Symfony/Component/HttpKernel/HttpKernel.php +++ b/src/Symfony/Component/HttpKernel/HttpKernel.php @@ -174,8 +174,7 @@ class HttpKernel implements HttpKernelInterface, TerminableInterface /** * Filters a response object. * - * @param Request $request An error message in case the response is not a Response object - * @param int $type The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST) + * @param int $type The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST) * * @throws \RuntimeException if the passed object is not a Response instance */ @@ -206,8 +205,7 @@ class HttpKernel implements HttpKernelInterface, TerminableInterface /** * Handles an exception by trying to convert it to a Response. * - * @param \Exception $e An \Exception instance - * @param int $type The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST) + * @param int $type The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST) * * @throws \Exception */ diff --git a/src/Symfony/Component/Intl/Data/Bundle/Writer/TextBundleWriter.php b/src/Symfony/Component/Intl/Data/Bundle/Writer/TextBundleWriter.php index d47d5920af..1139886ad8 100644 --- a/src/Symfony/Component/Intl/Data/Bundle/Writer/TextBundleWriter.php +++ b/src/Symfony/Component/Intl/Data/Bundle/Writer/TextBundleWriter.php @@ -11,8 +11,6 @@ namespace Symfony\Component\Intl\Data\Bundle\Writer; -use Symfony\Component\Intl\Exception\UnexpectedTypeException; - /** * Writes .txt resource bundles. * @@ -183,16 +181,9 @@ class TextBundleWriter implements BundleWriterInterface * Writes a "table" node. * * @param resource $file The file handle to write to - * - * @throws UnexpectedTypeException when $value is not an array and not a - * \Traversable instance */ private function writeTable($file, iterable $value, int $indentation, bool $fallback = true) { - if (!\is_array($value) && !$value instanceof \Traversable) { - throw new UnexpectedTypeException($value, 'array or \Traversable'); - } - if (!$fallback) { fwrite($file, ':table(nofallback)'); } diff --git a/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php b/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php index 7f9343dc5e..a53aeccf4a 100644 --- a/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php @@ -42,8 +42,7 @@ class LogoutListener implements ListenerInterface private $csrfTokenManager; /** - * @param TokenStorageInterface $tokenStorage - * @param array $options An array of options to process a logout attempt + * @param array $options An array of options to process a logout attempt */ public function __construct(TokenStorageInterface $tokenStorage, HttpUtils $httpUtils, LogoutSuccessHandlerInterface $successHandler, array $options = [], CsrfTokenManagerInterface $csrfTokenManager = null) {