diff --git a/tests/phpstan/configs/actual-problems.neon b/tests/phpstan/configs/actual-problems.neon index 4278cc3a8..a2ff4519b 100644 --- a/tests/phpstan/configs/actual-problems.neon +++ b/tests/phpstan/configs/actual-problems.neon @@ -1210,3 +1210,14 @@ parameters: count: 1 path: ../../../src/promise/Promise.php + - + message: "#^Parameter \\#1 \\$value of method pocketmine\\\\promise\\\\PromiseResolver\\\\:\\:resolve\\(\\) expects null, string given\\.$#" + count: 2 + path: ../../../src/event/AsyncEventDelegate.php + + - + message: "#^Parameter \\#1 \\$handler of class pocketmine\\\\event\\\\RegisteredAsyncListener constructor expects Closure\\(pocketmine\\\\event\\\\AsyncEvent&pocketmine\\\\event\\\\Event\\)\\: pocketmine\\\\promise\\\\Promise\\, \\(Closure\\(TEvent\\)\\: void\\)\\|\\(Closure\\(pocketmine\\\\event\\\\AsyncEvent&TEvent\\)\\: pocketmine\\\\promise\\\\Promise\\\\) given\\.$#" + count: 1 + path: ../../../src/plugin/PluginManager.php + +