1 | <?php |
||
18 | class AuthServiceProvider extends ServiceProvider |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Register any application authentication / authorization services. |
||
23 | * |
||
24 | * @param \Illuminate\Contracts\Auth\Access\Gate $gate |
||
|
|||
25 | * @return void |
||
26 | */ |
||
27 | public function boot(AuthManager $auth) |
||
30 | |||
31 | /** |
||
32 | * Register bindings in the container. |
||
33 | * |
||
34 | * @return void |
||
35 | */ |
||
36 | public function register() |
||
43 | } |
||
44 |
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.