File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class Dispatcher implements DispatcherContract
37
37
protected $ wildcards = [];
38
38
39
39
/**
40
- * Wildcard listeners cache which saves expensive string operations .
40
+ * The cached wildcard listeners .
41
41
*
42
42
* @var array
43
43
*/
@@ -290,9 +290,10 @@ public function getListeners($eventName)
290
290
{
291
291
$ listeners = $ this ->listeners [$ eventName ] ?? [];
292
292
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
+ );
296
297
297
298
return class_exists ($ eventName , false )
298
299
? $ this ->addInterfaceListeners ($ eventName , $ listeners )
You can’t perform that action at this time.
0 commit comments