Right now we only set State::$last_event_id if an apply hook is triggered. This means that events that don't have an apply method can trigger concurrency exceptions, even thought it's not a concurrency issue. This change should resolve that byt setting last_event_id when the event is dispatched regardless of whether there are any hooks registered for that phase.
Right now we only set
State::$last_event_id
if anapply
hook is triggered. This means that events that don't have an apply method can trigger concurrency exceptions, even thought it's not a concurrency issue. This change should resolve that byt settinglast_event_id
when the event is dispatched regardless of whether there are any hooks registered for that phase.