8000 Explicitly specify expected exception mapping structure with phpdocs · symfony/symfony@bcd9033 · GitHub
[go: up one dir, main page]

Skip to content

Commit bcd9033

Browse files
committed
Explicitly specify expected exception mapping structure with phpdocs
1 parent 1203d05 commit bcd9033

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,14 @@ class ErrorListener implements EventSubscriberInterface
3333
protected $controller;
3434
protected $logger;
3535
protected $debug;
36+
/**
37+
* @var array<class-string, array{log_level: string|null, status_code: int<100,599>|null}>
38+
*/
3639
protected $exceptionsMapping;
3740

41+
/**
42+
* @param array<class-string, array{log_level: string|null, status_code: int<100,599>|null}> $exceptionsMapping
43+
*/
3844
public function __construct($controller, LoggerInterface $logger = null, bool $debug = false, array $exceptionsMapping = [])
3945
{
4046
$this->controller = $controller;

0 commit comments

Comments
 (0)
0