mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-07 06:19:48 +00:00
Fix doc comments
This commit is contained in:
parent
409066c8f5
commit
a6a44bde90
@ -30,7 +30,7 @@ use function in_array;
|
||||
|
||||
class AsyncRegisteredListener{
|
||||
/**
|
||||
* @phpstan-param \Closure(AsyncEvent) : Promise<null> $handler
|
||||
* @phpstan-param \Closure(AsyncEvent) : ?Promise<null> $handler
|
||||
*/
|
||||
public function __construct(
|
||||
private \Closure $handler,
|
||||
|
@ -697,8 +697,9 @@ class PluginManager{
|
||||
/**
|
||||
* @param string $event Class name that extends Event and AsyncEvent
|
||||
*
|
||||
* @phpstan-param class-string<AsyncEvent> $event
|
||||
* @phpstan-param \Closure(AsyncEvent) : Promise<null> $handler
|
||||
* @phpstan-template TEvent of AsyncEvent
|
||||
* @phpstan-param class-string<TEvent> $event
|
||||
* @phpstan-param \Closure(TEvent) : ?Promise<null> $handler
|
||||
*
|
||||
* @throws \ReflectionException
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user