From 6f24e7f077ef61fd3d64b9f73488d2a04a045ba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Fri, 26 Jan 2024 00:12:37 +0100 Subject: [PATCH] Fixed phpunit tests caused by typo in Autowire attribute This caused the whole thing to behave very very weirdly --- src/EventSubscriber/RedirectToHttpsSubscriber.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EventSubscriber/RedirectToHttpsSubscriber.php b/src/EventSubscriber/RedirectToHttpsSubscriber.php index 400b50e5..7089109e 100644 --- a/src/EventSubscriber/RedirectToHttpsSubscriber.php +++ b/src/EventSubscriber/RedirectToHttpsSubscriber.php @@ -36,7 +36,7 @@ final class RedirectToHttpsSubscriber implements EventSubscriberInterface { public function __construct( - #[Autowire('env(bool:REDIRECT_TO_HTTPS)')] + #[Autowire('%env(bool:REDIRECT_TO_HTTPS)%')] private readonly bool $enabled, private readonly HttpUtils $httpUtils) { @@ -45,7 +45,7 @@ final class RedirectToHttpsSubscriber implements EventSubscriberInterface public static function getSubscribedEvents(): array { return [ - KernelEvents::REQUEST => ['onKernelRequest', 0], + KernelEvents::REQUEST => 'onKernelRequest', ]; }