| 1 | <?php |
||
| 6 | class WidgetOptionsContainer |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var array |
||
| 10 | */ |
||
| 11 | private $options; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * WidgetOptionsContainer constructor. |
||
| 15 | * |
||
| 16 | * @param array $options |
||
| 17 | */ |
||
| 18 | public function __construct($options = []) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return array |
||
| 25 | */ |
||
| 26 | public function getOptions() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param array $options |
||
| 33 | */ |
||
| 34 | public function setOptions($options) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param array $options |
||
|
|
|||
| 41 | */ |
||
| 42 | public function add($key, $value) |
||
| 46 | } |
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.