Skip to content

Commit dfc7a47

Browse files
committed
wip
1 parent 121193d commit dfc7a47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/event-bus/src/GenericEventBus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private function getCallable(array $eventHandlers): EventBusMiddlewareCallable
6666

6767
$callable($event);
6868

69-
if (is_object($event) && reflect($event)->hasAttribute(StopsPropagation::class) || $eventHandler->handler->handler?->hasAttribute(StopsPropagation::class)) {
69+
if (is_object($event) && reflect($event)->hasAttribute(StopsPropagation::class) || ($eventHandler->handler->handler ?? null)?->hasAttribute(StopsPropagation::class)) {
7070
break;
7171
}
7272
}

0 commit comments

Comments
 (0)