If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
33
/** @scrutinizer ignore-call */
34
$instance = $resource->getInstance();
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...
34
3
$expenseClaim = $instance->getExpenseClaim();
35
36
3
if (!$expenseClaim) {
37
return true;
38
}
39
40
3
$assertion = new StatusIsNew();
41
42
3
return $assertion->assert($acl, $role, new ModelResource(ExpenseClaim::class, $expenseClaim), $privilege);
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.