1 | <?php |
||
18 | class ApprovalControllerFactory implements FactoryInterface |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Injects all needed services into the IndexController |
||
23 | * |
||
24 | * @param ServiceLocatorInterface $serviceLocator |
||
25 | * |
||
26 | * @return ApprovalController |
||
27 | */ |
||
28 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
44 | } |
||
45 |
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.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.