The call to Illuminate\Support\Facades\App::environment() has too many arguments starting with config('debugbar.enabled_environment').
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
35
if (\App::/** @scrutinizer ignore-call */ environment(config('debugbar.enabled_environment'))) {
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. Please note the @ignore annotation hint above.
Loading history...
36
$this->registerServiceProviders();
37
$this->registerFacadeAliases();
38
}
39
}
40
41
/**
42
* Register the application services.
43
*
44
* @return void
45
*/
46
public function register()
47
{
48
//
49
}
50
51
/**
52
* Load local service providers.
53
*/
54
protected function registerServiceProviders()
55
{
56
foreach ($this->localProviders as $provider) {
57
$this->app->register($provider);
58
}
59
}
60
61
/**
62
* Load additional Aliases.
63
*/
64
public function registerFacadeAliases()
65
{
66
$loader = AliasLoader::getInstance();
67
foreach ($this->facadeAliases as $alias => $facade) {
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. Please note the @ignore annotation hint above.