1 | <?php |
||
8 | class TimegridioConciergeServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * Indicates if loading of the provider is deferred. |
||
12 | * |
||
13 | * @var bool |
||
14 | */ |
||
15 | protected $defer = false; |
||
16 | |||
17 | /** |
||
18 | * Perform post-registration booting of services. |
||
19 | * |
||
20 | * @return void |
||
21 | */ |
||
22 | 152 | public function boot() |
|
31 | |||
32 | /** |
||
33 | * Register any package services. |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | 152 | public function register() |
|
41 | |||
42 | /** |
||
43 | * Register package. |
||
44 | * |
||
45 | * @return Concierge |
||
46 | */ |
||
47 | private function registerConcierge() |
||
53 | } |
||
54 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.