| 1 | <?php |
||
| 7 | class RedirectorMacros |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Create a new redirect response to a named route. |
||
| 11 | * |
||
| 12 | * @param string $route |
||
|
|
|||
| 13 | * @param mixed $parameters |
||
| 14 | * @param int $status |
||
| 15 | * @param array $headers |
||
| 16 | * @return \Illuminate\Http\RedirectResponse |
||
| 17 | */ |
||
| 18 | public function localizedRoute(): Closure |
||
| 24 | } |
||
| 25 |
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.