1 | <?php |
||
16 | class TextValue extends BaseValue |
||
17 | { |
||
18 | private $_text; |
||
19 | |||
20 | /** |
||
21 | * Provide date data. |
||
22 | * |
||
23 | * @param string|integer $date |
||
|
|||
24 | */ |
||
25 | public function __construct($text) |
||
29 | |||
30 | /** |
||
31 | * Truncate the string for a given lenth. |
||
32 | * |
||
33 | * @param integer $length |
||
34 | */ |
||
35 | public function truncate($length) |
||
41 | |||
42 | /** |
||
43 | * @inheritDoc |
||
44 | */ |
||
45 | public function getValue() |
||
49 | } |
||
50 |
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.