From 6dcd2a4ece1f56787c1841004c2523079706cd48 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 9 Jan 2020 19:56:04 +0000 Subject: [PATCH] phpstan: start phasing in some level 6 checks --- phpstan.neon.dist | 1 + tests/phpstan/configs/gradual-level6.neon | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/phpstan/configs/gradual-level6.neon diff --git a/phpstan.neon.dist b/phpstan.neon.dist index f46f022b7..7597d680c 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,5 +1,6 @@ includes: - tests/phpstan/configs/gc-hacks.neon + - tests/phpstan/configs/gradual-level6.neon - tests/phpstan/configs/optional-com-dotnet.neon - tests/phpstan/configs/optional-leveldb.neon - tests/phpstan/configs/phpstan-bugs.neon diff --git a/tests/phpstan/configs/gradual-level6.neon b/tests/phpstan/configs/gradual-level6.neon new file mode 100644 index 000000000..36538e143 --- /dev/null +++ b/tests/phpstan/configs/gradual-level6.neon @@ -0,0 +1,12 @@ +parameters: + #checkGenericClassInNonGenericObjectType: true + #checkMissingIterableValueType: true + checkMissingVarTagTypehint: true + checkMissingTypehints: true + +rules: + #- PHPStan\Rules\Functions\MissingFunctionParameterTypehintRule + #- PHPStan\Rules\Functions\MissingFunctionReturnTypehintRule + #- PHPStan\Rules\Methods\MissingMethodParameterTypehintRule + #- PHPStan\Rules\Methods\MissingMethodReturnTypehintRule + - PHPStan\Rules\Properties\MissingPropertyTypehintRule