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