From 8069f49a3d5f2f2eaffbf7ace0197ca4a9687e00 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Wed, 5 Jul 2023 15:03:40 +0200 Subject: [PATCH] [Security] Add native return type to `Firewall::getSubscribedEvents()` --- src/Symfony/Component/Security/Http/CHANGELOG.md | 1 + src/Symfony/Component/Security/Http/Firewall.php | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Symfony/Component/Security/Http/CHANGELOG.md b/src/Symfony/Component/Security/Http/CHANGELOG.md index fde2311d6e112..9081aa7ba83d9 100644 --- a/src/Symfony/Component/Security/Http/CHANGELOG.md +++ b/src/Symfony/Component/Security/Http/CHANGELOG.md @@ -5,6 +5,7 @@ CHANGELOG --- * `UserValueResolver` no longer implements `ArgumentValueResolverInterface` + * Add native return type to `Firewall::getSubscribedEvents()` 6.3 --- diff --git a/src/Symfony/Component/Security/Http/Firewall.php b/src/Symfony/Component/Security/Http/Firewall.php index f2f86a5dfa7b2..f22988da132d3 100644 --- a/src/Symfony/Component/Security/Http/Firewall.php +++ b/src/Symfony/Component/Security/Http/Firewall.php @@ -108,10 +108,7 @@ public function onKernelFinishRequest(FinishRequestEvent $event) } } - /** - * @return array - */ - public static function getSubscribedEvents() + public static function getSubscribedEvents(): array { return [ KernelEvents::REQUEST => ['onKernelRequest', 8],