1 | <?php |
||
11 | class SetupCommand extends ContainerAwareCommand |
||
12 | { |
||
13 | /** |
||
14 | * @var InputInterface |
||
15 | */ |
||
16 | private $input; |
||
17 | |||
18 | /** |
||
19 | * @var OutputInterface |
||
20 | */ |
||
21 | private $output; |
||
22 | |||
23 | protected function configure() |
||
28 | |||
29 | protected function execute(InputInterface $input, OutputInterface $output) |
||
39 | |||
40 | /** |
||
41 | * @param string $commandName |
||
42 | * @param string $message |
||
43 | * @param string $params |
||
44 | * |
||
45 | * @throws \Exception |
||
46 | */ |
||
47 | private function executeCommand($commandName, $message, $params = '') |
||
60 | |||
61 | private function setUpMatchFixtures() |
||
67 | |||
68 | /** |
||
69 | * @param string $message |
||
70 | */ |
||
71 | private function commandStart($message) |
||
75 | } |
||
76 |
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.