1 | <?php |
||
9 | class UpdateEntryCommand |
||
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 | * @var |
||
25 | */ |
||
26 | public $entry_id; |
||
27 | |||
28 | /** |
||
29 | * CreateEntryCommand constructor. |
||
30 | * @param $entity |
||
31 | * @param array $data |
||
|
|||
32 | */ |
||
33 | public function __construct($entity, $entry_id, array $input) |
||
39 | } |
||
40 |
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.