| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function decodeControllerParameters(FilterControllerEvent $event): void |
||
| 13 | { |
||
| 14 | $controller = $event->getController(); |
||
| 15 | $parametersProcessor = $this |
||
|
|
|||
| 16 | ->getParametersProcessorFactory() |
||
| 17 | ->createControllerDecodeParametersProcessor(...$controller); |
||
| 18 | |||
| 19 | $this->processRequestParameters($event, $parametersProcessor); |
||
| 20 | $this->processRequestParametersWithParamConverter($event); |
||
| 21 | } |
||
| 23 |
This check compares calls to functions or methods with their respective definitions. If the call has less 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.