1 | <?php |
||
11 | class LocaleRouteServiceProvider extends ServiceProvider |
||
12 | { |
||
13 | protected $defer = false; |
||
14 | |||
15 | public function boot(Router $router) |
||
22 | |||
23 | /** |
||
24 | * Adds locale.session middleware alias to both Laravel 5.4 (aliasMiddleware) and Laravel <5.4 (middleware) |
||
25 | * @param Router $router: the app router |
||
|
|||
26 | * @return void |
||
27 | */ |
||
28 | protected function aliasMiddleware(Router $router) |
||
36 | |||
37 | public function register() |
||
44 | } |
||
45 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.