Skip to content

Commit 2309ae5

Browse files
bug #46377 [HttpKernel] Fix missing null type in ErrorListener::__construct() (chalasr)
This PR was merged into the 6.0 branch. Discussion ---------- [HttpKernel] Fix missing null type in `ErrorListener::__construct()` | Q | A | ------------- | --- | Branch? | 6.0 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #46375 | License | MIT | Doc PR | - Commits ------- 0f4a3cc [HttpKernel] Fix missing null type in `ErrorListener::__construct()`
2 parents 154637b + 0f4a3cc commit 2309ae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/EventListener/ErrorListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ErrorListener implements EventSubscriberInterface
3535
protected $debug;
3636
protected $exceptionsMapping;
3737

38-
public function __construct(string|object|array $controller, LoggerInterface $logger = null, bool $debug = false, array $exceptionsMapping = [])
38+
public function __construct(string|object|array|null $controller, LoggerInterface $logger = null, bool $debug = false, array $exceptionsMapping = [])
3939
{
4040
$this->controller = $controller;
4141
$this->logger = $logger;

0 commit comments

Comments
 (0)