File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class Dispatcher implements DispatcherContract
3737 protected $ wildcards = [];
3838
3939 /**
40- * Wildcard listeners cache which saves expensive string operations .
40+ * The cached wildcard listeners .
4141 *
4242 * @var array
4343 */
@@ -290,9 +290,10 @@ public function getListeners($eventName)
290290 {
291291 $ listeners = $ this ->listeners [$ eventName ] ?? [];
292292
293- $ wildcardListeners = $ this ->wildcardsCache [$ eventName ] ?? $ this ->getWildcardListeners ($ eventName );
294-
295- $ listeners = array_merge ($ listeners , $ wildcardListeners );
293+ $ listeners = array_merge (
294+ $ listeners ,
295+ $ this ->wildcardsCache [$ eventName ] ?? $ this ->getWildcardListeners ($ eventName )
296+ );
296297
297298 return class_exists ($ eventName , false )
298299 ? $ this ->addInterfaceListeners ($ eventName , $ listeners )
You can’t perform that action at this time.
0 commit comments