| 1 | <?php |
||
| 19 | class AuthServiceProvider extends PortAuthServiceProvider |
||
| 20 | { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * The policy mappings for the application. |
||
| 24 | * |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | protected $policies = [ |
||
| 28 | Application::class => ApplicationPolicy::class, |
||
| 29 | ]; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Register any application authentication / authorization services. |
||
| 33 | * |
||
| 34 | * @return void |
||
| 35 | */ |
||
| 36 | public function boot() |
||
| 40 | } |
||
| 41 |
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.