| 1 | <?php |
||
| 9 | class RouterMacros |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Register a multilingual GET route. |
||
| 13 | * |
||
| 14 | * @param string $key |
||
|
1 ignored issue
–
show
|
|||
| 15 | * @param mixed $handle |
||
|
1 ignored issue
–
show
|
|||
| 16 | * @param array $locales |
||
|
1 ignored issue
–
show
|
|||
| 17 | * @return \Closure |
||
| 18 | */ |
||
| 19 | public function multilingual() : Closure |
||
| 32 | } |
||
| 33 |
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.