| 1 | <?php |
||
| 7 | class NamespacesRepository |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The array of namespaces. |
||
| 11 | * |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | protected $namespaces; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Register a namespace. |
||
| 18 | * |
||
| 19 | * @param string $alias |
||
| 20 | * @param string $namespace |
||
| 21 | * |
||
| 22 | * @return WidgetNamespaces |
||
| 23 | */ |
||
| 24 | public function registerNamespace($alias, $namespace) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get namespace by his alias. |
||
| 33 | * |
||
| 34 | * @param string $label |
||
|
|
|||
| 35 | * |
||
| 36 | * @throws \Exception |
||
| 37 | * |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getNamespace($alias) |
||
| 48 | } |
||
| 49 |
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.