| 1 | <?php |
||
| 16 | class AuthorizationServiceProvider extends ServiceProvider |
||
| 17 | { |
||
| 18 | /* ----------------------------------------------------------------- |
||
| 19 | | Getters |
||
| 20 | | ----------------------------------------------------------------- |
||
| 21 | */ |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Get policy's classes. |
||
| 25 | * |
||
| 26 | * @return iterable |
||
| 27 | */ |
||
| 28 | 168 | public function policyClasses(): iterable |
|
| 32 | |||
| 33 | /* ----------------------------------------------------------------- |
||
| 34 | | Main Methods |
||
| 35 | | ----------------------------------------------------------------- |
||
| 36 | */ |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Register any application authentication / authorization services. |
||
| 40 | */ |
||
| 41 | 168 | public function boot(): void |
|
| 51 | } |
||
| 52 |
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.