1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace PK\CI\Command; |
||
6 | |||
7 | use PK\CI\Configuration\DirectoriesInterface; |
||
8 | use PK\CI\TestRunner\FixableRunnerInterface; |
||
9 | use PK\CI\TestRunner\RunnerInterface; |
||
10 | |||
11 | class FixCommand extends RunCommand |
||
12 | { |
||
13 | /** |
||
14 | * @param FixableRunnerInterface $runner |
||
15 | * |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | protected function getArgv(RunnerInterface $runner, DirectoriesInterface $directories): array |
||
19 | { |
||
20 | return $runner->getArgv($this->locator, $directories, true); |
||
0 ignored issues
–
show
|
|||
21 | } |
||
22 | } |
||
23 |
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.