From 0f4a3cc2fcebe2ad667dd6649e77db5c144d85a2 Mon Sep 17 00:00:00 2001 From: Robin Chalas Date: Tue, 17 May 2022 15:15:59 +0200 Subject: [PATCH] [HttpKernel] Fix missing null type in `ErrorListener::__construct()` --- .../Component/HttpKernel/EventListener/ErrorListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpKernel/EventListener/ErrorListener.php b/src/Symfony/Component/HttpKernel/EventListener/ErrorListener.php index 8bac8afe268e9..6b44a85791dc7 100644 --- a/src/Symfony/Component/HttpKernel/EventListener/ErrorListener.php +++ b/src/Symfony/Component/HttpKernel/EventListener/ErrorListener.php @@ -35,7 +35,7 @@ class ErrorListener implements EventSubscriberInterface protected $debug; protected $exceptionsMapping; - public function __construct(string|object|array $controller, LoggerInterface $logger = null, bool $debug = false, array $exceptionsMapping = []) + public function __construct(string|object|array|null $controller, LoggerInterface $logger = null, bool $debug = false, array $exceptionsMapping = []) { $this->controller = $controller; $this->logger = $logger;