1 | <?php |
||
8 | class Hour extends Natural |
||
9 | { |
||
10 | const MIN_HOUR = 0; |
||
11 | const MAX_HOUR = 23; |
||
12 | |||
13 | /** |
||
14 | * Returns a new Hour from native int value |
||
15 | * |
||
16 | * @param int $value |
||
|
|||
17 | * @return Hour |
||
18 | */ |
||
19 | 1 | public static function fromNative() |
|
25 | |||
26 | /** |
||
27 | * Returns a new Hour object |
||
28 | * |
||
29 | * @param int $value |
||
30 | */ |
||
31 | 31 | public function __construct($value) |
|
45 | |||
46 | /** |
||
47 | * Returns the current hour. |
||
48 | * |
||
49 | * @return Hour |
||
50 | */ |
||
51 | 4 | public static function now() |
|
58 | } |
||
59 |
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.