| 1 | <?php |
||
| 18 | class AuthServiceProvider extends PortAuthServiceProvider |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * The policy mappings for the application. |
||
| 23 | * |
||
| 24 | * @var array |
||
| 25 | */ |
||
| 26 | protected $policies = [ |
||
| 27 | User::class => UserPolicy::class, |
||
| 28 | ]; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Register any application authentication / authorization services. |
||
| 32 | * |
||
| 33 | * @return void |
||
| 34 | */ |
||
| 35 | public function boot() |
||
| 39 | } |
||
| 40 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()method in theSoncalls the wrong method in the parent class.