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...
21
22
106
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
22
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...
25
}
26
27
106
return SituationsProxy::call($method, $args);
28
}
29
30
2
public function checkPoint(string $pointName)
31
{
32
2
event('heyman_checkpoint_'.$pointName);
33
1
}
34
35
1
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.