1 | <?php namespace Arcanesoft\Auth\Providers; |
||
12 | class AuthorizationServiceProvider extends ServiceProvider |
||
13 | { |
||
14 | /* ------------------------------------------------------------------------------------------------ |
||
15 | | Properties |
||
16 | | ------------------------------------------------------------------------------------------------ |
||
17 | */ |
||
18 | /** |
||
19 | * The policy mappings for the application. |
||
20 | * |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $policies = []; |
||
24 | |||
25 | /* ------------------------------------------------------------------------------------------------ |
||
26 | | Main Functions |
||
27 | | ------------------------------------------------------------------------------------------------ |
||
28 | */ |
||
29 | /** |
||
30 | * Register any application authentication / authorization services. |
||
31 | * |
||
32 | * @param \Illuminate\Contracts\Auth\Access\Gate $gate |
||
33 | */ |
||
34 | 18 | public function boot(GateContract $gate) |
|
38 | } |
||
39 |
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 theSon
calls the wrong method in the parent class.