| 1 | <?php |
||
| 8 | class RelativeHumidity extends Natural |
||
| 9 | { |
||
| 10 | const MIN = 0; |
||
| 11 | |||
| 12 | const MAX = 100; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Returns a new RelativeHumidity from native int value |
||
| 16 | * |
||
| 17 | * @param int $value |
||
|
|
|||
| 18 | * @return RelativeHumidity |
||
| 19 | */ |
||
| 20 | 1 | public static function fromNative() |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Returns a new RelativeHumidity object |
||
| 29 | * |
||
| 30 | * @param int $value |
||
| 31 | */ |
||
| 32 | 2 | public function __construct($value) |
|
| 46 | } |
||
| 47 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.