The method getEvent() does not exist on SplSubject. It seems like you code against a sub-type of SplSubject such as Fatindeed\GitlabWebhookHandler\EventSubject.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
28
/** @scrutinizer ignore-call */
29
$event = $subject->getEvent();
Loading history...
29
2
if (in_array(get_class($event), $this->eventTypes)) {