Skip to content

Commit

Permalink
unset event handler when halting
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin committed Dec 21, 2024
1 parent f044001 commit 181a14c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Support/Traits/Emitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ public function fireEvent($event, $params = [], $halt = false)
continue;
}
if ($halt) {
unset($this->emitterSingleEventCollection[$event]);
return $response;
}
$result[] = $response;
Expand Down

0 comments on commit 181a14c

Please sign in to comment.