1 | <?php |
||
29 | class LookControlsComponent extends ComponentAbstract implements LookControlsInterface |
||
30 | { |
||
31 | |||
32 | /** |
||
33 | * Initialize Component |
||
34 | * |
||
35 | * {@inheritdoc} |
||
36 | * |
||
37 | * @return bool |
||
38 | */ |
||
39 | 6 | public function initializeComponent(): bool |
|
44 | |||
45 | /** |
||
46 | * look-controls enabled |
||
47 | * Whether look controls are enabled. |
||
48 | * |
||
49 | * @param array $dom_attributes |
||
|
|||
50 | * @param bool $enabled |
||
51 | * @return LookControlsAbstract |
||
52 | */ |
||
53 | 6 | public function enabled( bool $enabled = true): LookControlsInterface |
|
58 | } |
||
59 |
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.