It's possible for PendingEvent::fire() to return null if you're firing an event from a handle method during replay. This is the correct behavior, but breaks the type expectations of verb(). The fix is to just return the original event, rather than rewriting the variable.
It's possible for
PendingEvent::fire()
to return null if you're firing an event from ahandle
method during replay. This is the correct behavior, but breaks the type expectations ofverb()
. The fix is to just return the original event, rather than rewriting the variable.