Skip to content

Commit

Permalink
Fix event listener array callback (#43890)
Browse files Browse the repository at this point in the history
  • Loading branch information
Digity101 authored Aug 29, 2022
1 parent 8a02e8f commit b32808d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function register()
$events = $this->getEvents();

foreach ($events as $event => $listeners) {
foreach (array_unique($listeners) as $listener) {
foreach (array_unique($listeners, SORT_REGULAR) as $listener) {
Event::listen($event, $listener);
}
}
Expand Down

0 comments on commit b32808d

Please sign in to comment.