1 | <?php |
||
9 | class CommandHydrator implements CommandHydratorInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var \Nexus\CustomCommand\Business\Finder\CommandFinderInterface |
||
13 | */ |
||
14 | private $commandFinder; |
||
15 | |||
16 | /** |
||
17 | * CommandHydrator constructor. |
||
18 | * |
||
19 | * @param \Nexus\CustomCommand\Business\Finder\CommandFinderInterface $commandFinder |
||
20 | */ |
||
21 | 3 | public function __construct(CommandFinderInterface $commandFinder) |
|
25 | |||
26 | /** |
||
27 | * @param array $commands |
||
28 | * |
||
29 | * @return array |
||
30 | */ |
||
31 | 3 | public function hydrateCommands(array $commands) |
|
39 | |||
40 | /** |
||
41 | * @param array $commands |
||
|
|||
42 | * |
||
43 | * @return array |
||
44 | */ |
||
45 | 2 | private function getCommandsFromFinder(): array |
|
59 | |||
60 | |||
61 | } |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.