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