Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class DefaultProvider extends PriorityListenerProvider |
||
14 | { |
||
15 | use ProviderUtilitiesTrait; |
||
16 | |||
17 | /** |
||
18 | * @inheritDoc |
||
19 | */ |
||
20 | public function getListenersForEvent(object $event): iterable |
||
21 | { |
||
22 | yield from parent::getListenersForEvent($event); |
||
23 | |||
24 | if (method_exists($event, 'getName') ){ |
||
25 | yield from $this->getListenersForEventName($event->eventName()); |
||
26 | } |
||
27 | yield from $this->getListenersForEventInterfaces($event); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param string $eventName |
||
32 | * @param callable|string $listener |
||
33 | * @param int $priority |
||
34 | */ |
||
35 | public function addListener(string $eventName, $listener, int $priority = ListenerPriority::NORMAL): void |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @param string $eventName |
||
42 | * @param callable|string $listener |
||
43 | * @param int $priority |
||
44 | */ |
||
45 | public function listen(string $eventName, $listener, int $priority = ListenerPriority::NORMAL): void |
||
48 | } |
||
49 | } |
||
50 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths