| 1 | <?php |
||
| 12 | class Select extends FieldAbstract |
||
| 13 | { |
||
| 14 | /** @var array $options */ |
||
| 15 | private $options = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return string |
||
| 19 | */ |
||
| 20 | 1 | public function getTag() |
|
| 24 | |||
| 25 | |||
| 26 | 1 | public function init() |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | 1 | public function getOptions() |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param array $options |
||
| 43 | * @return $this |
||
| 44 | */ |
||
| 45 | public function setOptions($options) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | public function getOption($key) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @param array $options |
||
|
|
|||
| 61 | * @return $this |
||
| 62 | */ |
||
| 63 | 1 | public function setOption($key, $value) |
|
| 68 | } |
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.