File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -562,7 +562,7 @@ public function clearPlugins() : void{
562562 * completely. Invalid annotations on candidate listener methods should result in an error, so those aren't checked
563563 * here.
564564 *
565- * @phpstan-return class-string<Event>|null
565+ * @phpstan-return class-string<Event|AsyncEvent >|null
566566 */
567567 private function getEventsHandledBy (\ReflectionMethod $ method ) : ?string {
568568 if ($ method ->isStatic () || !$ method ->getDeclaringClass ()->implementsInterface (Listener::class)){
@@ -591,7 +591,7 @@ private function getEventsHandledBy(\ReflectionMethod $method) : ?string{
591591 return null ;
592592 }
593593
594- /** @var \ReflectionClass<Event> $eventClass */
594+ /** @var \ReflectionClass<Event|AsyncEvent > $eventClass */
595595 return $ eventClass ->getName ();
596596 }
597597
You can’t perform that action at this time.
0 commit comments