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
49
/** @scrutinizer ignore-call */
50
$sysenv = $event->systemEnvironment();
Loading history...
50
6
if (!\in_array($sysenv, self::ALLOWED_MODES)) {
51
return;
52
}
53
54
6
$request = Request::createFromGlobals();
55
6
$this->httpFacade->execute($request);
56
}
57
58
1
public static function supports(EventInterface $event): bool