mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-09 21:24:53 +00:00
fix PHPStan
This commit is contained in:
parent
cc6e8ef232
commit
ca95b2f28d
@ -33,7 +33,7 @@ use function count;
|
||||
final class AsyncEventDelegate{
|
||||
/** @phpstan-var ObjectSet<Promise<null>> $promises */
|
||||
private ObjectSet $promises;
|
||||
/** @var array<class-string<AsyncEvent&Event>, int> $delegatesCall */
|
||||
/** @var array<class-string<AsyncEvent&Event>, int> $delegatesCallDepth */
|
||||
private static array $delegatesCallDepth = [];
|
||||
private const MAX_EVENT_CALL_DEPTH = 50;
|
||||
|
||||
|
@ -1205,4 +1205,8 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../src/plugin/PluginManager.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$handler of class pocketmine\\\\event\\\\RegisteredAsyncListener constructor expects Closure\\(pocketmine\\\\event\\\\AsyncEvent&pocketmine\\\\event\\\\Event\\)\\: pocketmine\\\\promise\\\\Promise\\<null\\>, Closure\\(TEvent\\)\\: pocketmine\\\\promise\\\\Promise\\<null\\> given\\.$#"
|
||||
count: 1
|
||||
path: ../../../src/plugin/PluginManager.php
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user