Skip to content

Commit 84b5c55

Browse files
authored
Fix phpdoc types
1 parent 126f836 commit 84b5c55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugin/PluginManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)