Skip to content

Commit b32808d

Browse files
authored
Fix event listener array callback (#43890)
1 parent 8a02e8f commit b32808d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Support/Providers/EventServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function register()
4040
$events = $this->getEvents();
4141

4242
foreach ($events as $event => $listeners) {
43-
foreach (array_unique($listeners) as $listener) {
43+
foreach (array_unique($listeners, SORT_REGULAR) as $listener) {
4444
Event::listen($event, $listener);
4545
}
4646
}

0 commit comments

Comments
 (0)