We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 83.33% |
Changes | 0 |
1 | <?php |
||
12 | final class EventDispatcherVersionHelper |
||
13 | { |
||
14 | /** |
||
15 | * @return bool |
||
16 | */ |
||
17 | 99 | public static function isForLegacy() |
|
20 | } |
||
21 | |||
22 | /** |
||
23 | * @param EventDispatcherInterface $dispatcher |
||
24 | * @param object $event |
||
25 | * @param string|null $eventName |
||
26 | * |
||
27 | * @return object the event |
||
28 | */ |
||
29 | 97 | public static function dispatch(EventDispatcherInterface $dispatcher, $event, $eventName) |
|
38 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.