1 | <?php |
||
15 | class AdminListSubscriber implements EventSubscriberInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var RouterInterface |
||
19 | */ |
||
20 | private $router; |
||
21 | |||
22 | /** |
||
23 | * ArticleSubscriber constructor. |
||
24 | * |
||
25 | * @param RouterInterface $router |
||
26 | */ |
||
27 | public function __construct(RouterInterface $router) |
||
31 | |||
32 | /** |
||
33 | * @return array |
||
|
|||
34 | */ |
||
35 | public static function getSubscribedEvents() |
||
41 | |||
42 | /** |
||
43 | * @param NodeEvent $event |
||
44 | */ |
||
45 | public function postDelete(NodeEvent $event) |
||
57 | } |
||
58 |
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.