Skip to content

Commit

Permalink
fix handler priority inversed
Browse files Browse the repository at this point in the history
  • Loading branch information
ShockedPlot7560 committed Nov 2, 2024
1 parent 8c2bfcf commit 0fa769a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event/HandlerList.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@ public function getListenerList() : array{
//TODO: why on earth do the priorities have higher values for lower priority?
ksort($listenersByPriority, SORT_NUMERIC);

return $this->handlerCache->list = array_merge(...$listenersByPriority);
return $this->handlerCache->list = array_reverse(array_merge(...$listenersByPriority));
}
}

0 comments on commit 0fa769a

Please sign in to comment.