This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
22
105
23
if (config()->get('app.debug') and !app()->environment('production')) {
The method environment() does not exist on Illuminate\Container\Container. Are you sure you never get this type here, but always one of the subclasses?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
23
if (config()->get('app.debug') and !app()->/** @scrutinizer ignore-call */ environment('production')) {
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
26
}
27
105
28
return SituationsProxy::call($method, $args);
29
}
30
38
31
public function makeSure($app): HttpClient
32
38
{
33
return new HttpClient($app);
34
}
35
2
36
public function checkPoint(string $pointName)
37
2
{
38
1
event('heyman_checkpoint_'.$pointName);
39
}
40
41
public function condition(string $name, $callable)
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.