1 | <?php |
||
31 | class Section implements IIconSection { |
||
32 | /** @var IL10N */ |
||
33 | private $l10n; |
||
34 | /** @var IURLGenerator */ |
||
35 | private $url; |
||
36 | /** @var Capabilities */ |
||
37 | private $capabilitites; |
||
38 | |||
39 | /** |
||
40 | * @param IL10N $l |
||
|
|||
41 | * @param IURLGenerator $url |
||
42 | */ |
||
43 | public function __construct(IL10N $l10n, IURLGenerator $url, Capabilities $capabilities) { |
||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function getID() { |
||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function getName() { |
||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function getPriority() { |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function getIcon() { |
||
77 | } |
||
78 |
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.