Fixed phpunit tests caused by typo in Autowire attribute

This caused the whole thing to behave very very weirdly
This commit is contained in:
Jan Böhmer 2024-01-26 00:12:37 +01:00
parent 08e7e3f2bf
commit 6f24e7f077

View file

@ -36,7 +36,7 @@ final class RedirectToHttpsSubscriber implements EventSubscriberInterface
{ {
public function __construct( public function __construct(
#[Autowire('env(bool:REDIRECT_TO_HTTPS)')] #[Autowire('%env(bool:REDIRECT_TO_HTTPS)%')]
private readonly bool $enabled, private readonly bool $enabled,
private readonly HttpUtils $httpUtils) private readonly HttpUtils $httpUtils)
{ {
@ -45,7 +45,7 @@ final class RedirectToHttpsSubscriber implements EventSubscriberInterface
public static function getSubscribedEvents(): array public static function getSubscribedEvents(): array
{ {
return [ return [
KernelEvents::REQUEST => ['onKernelRequest', 0], KernelEvents::REQUEST => 'onKernelRequest',
]; ];
} }