1 | <?php |
||
11 | class Label implements InputInterface { |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $key; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $text; |
||
22 | |||
23 | /** |
||
24 | * @param string $key |
||
25 | * @param string $label |
||
|
|||
26 | */ |
||
27 | public function __construct( string $key, string $text ) { |
||
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | public function render(): string { |
||
38 | |||
39 | } |
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.