| 1 | <?php |
||
| 8 | class AuthServiceProvider extends ServiceProvider |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The policy mappings for the application. |
||
| 12 | * |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | protected $policies = [ |
||
| 16 | \LaravelFlare\Flare\Admin\Models\ModelAdmin::class => \LaravelFlare\Flare\Permissions\ModelAdminPolicy::class, |
||
| 17 | ]; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Register the application's policies. |
||
| 21 | */ |
||
| 22 | public function registerPolicies() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Register any application authentication / authorization services. |
||
| 31 | * |
||
| 32 | * @param \Illuminate\Contracts\Auth\Access\Gate $gate |
||
|
|
|||
| 33 | */ |
||
| 34 | public function boot() |
||
| 38 | } |
||
| 39 |
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.