The method systemEnvironment() does not exist on Micro\Component\EventEmitter\EventInterface. It seems like you code against a sub-type of Micro\Component\EventEmitter\EventInterface such as Micro\Kernel\App\Busines...tionReadyEventInterface.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
40
/** @scrutinizer ignore-call */
41
$sysenv = $event->systemEnvironment();
Loading history...
41
2
if ('cli' === $sysenv) {
42
1
return;
43
}
44
45
1
$request = Request::createFromGlobals();
46
47
1
$this->httpFacade->execute($request);
48
}
49
50
1
public static function supports(EventInterface $event): bool