1 | <?php |
||
9 | class CreateEntryCommand |
||
10 | { |
||
11 | /** |
||
12 | * The Entity |
||
13 | * @var |
||
14 | */ |
||
15 | public $entity; |
||
16 | |||
17 | /** |
||
18 | * The data to be stored |
||
19 | * @var array |
||
20 | */ |
||
21 | public $input = []; |
||
22 | |||
23 | /** |
||
24 | * CreateEntryCommand constructor. |
||
25 | * @param $entity |
||
26 | * @param array $data |
||
|
|||
27 | */ |
||
28 | public function __construct($entity, array $input) |
||
33 | } |
||
34 |
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.