diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 88d9918ac..869585674 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -22,7 +22,7 @@ parameters: bootstrapFiles: - tests/phpstan/bootstrap.php scanDirectories: - - tests/plugins/TesterPlugin + - tests/plugins/TesterPlugin scanFiles: - src/pocketmine/PocketMine.php - build/make-release.php @@ -44,10 +44,10 @@ parameters: staticReflectionClassNamePatterns: - "#^COM$#" typeAliases: - #variadics don't work for this - mixed probably shouldn't work either, but for now it does - #what we actually need is something that accepts an infinite number of parameters, but in the absence of that, - #we'll just fill it with 10 - it's very unlikely to encounter a callable with 10 parameters anyway. - anyCallable: 'callable(mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed) : mixed' - anyClosure: '\Closure(mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed) : mixed' - PhpSocket: '\Socket' - PhpCurlHandle: '\CurlHandle' + #variadics don't work for this - mixed probably shouldn't work either, but for now it does + #what we actually need is something that accepts an infinite number of parameters, but in the absence of that, + #we'll just fill it with 10 - it's very unlikely to encounter a callable with 10 parameters anyway. + anyCallable: 'callable(mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed) : mixed' + anyClosure: '\Closure(mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed) : mixed' + PhpSocket: '\Socket' + PhpCurlHandle: '\CurlHandle'