1 | <?php |
||
7 | class AuthServiceProvider extends ServiceProvider |
||
8 | { |
||
9 | /** |
||
10 | * The policy mappings for the application. |
||
11 | * |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $policies = [ |
||
15 | 'PiFinder\Model' => 'PiFinder\Policies\ModelPolicy', |
||
16 | ]; |
||
17 | |||
18 | /** |
||
19 | * Register any application authentication / authorization services. |
||
20 | * |
||
21 | * @param \Illuminate\Contracts\Auth\Access\Gate $gate |
||
|
|||
22 | * |
||
23 | * @return void |
||
24 | */ |
||
25 | 9 | public function boot() |
|
31 | } |
||
32 |
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.