1 | <?php |
||
12 | class ExceptionSubscriber implements EventSubscriberInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var EntityManagerInterface |
||
16 | */ |
||
17 | private $em; |
||
18 | |||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | private $excludes; |
||
23 | |||
24 | /** |
||
25 | * @return array |
||
|
|||
26 | */ |
||
27 | public static function getSubscribedEvents() |
||
33 | |||
34 | /** |
||
35 | * ExceptionSubscriber constructor. |
||
36 | * |
||
37 | * @param EntityManagerInterface $em |
||
38 | * @param array $excludes |
||
39 | */ |
||
40 | public function __construct(EntityManagerInterface $em, array $excludes = []) |
||
45 | |||
46 | /** |
||
47 | * @param GetResponseForExceptionEvent $event |
||
48 | */ |
||
49 | public function onKernelException(GetResponseForExceptionEvent $event) |
||
85 | } |
||
86 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.