diff --git a/Build/phpstan.level2.neon b/Build/phpstan.level2.neon deleted file mode 100644 index f0aac63f51ef2b72313dbfb59dfa28647918ceb5..0000000000000000000000000000000000000000 --- a/Build/phpstan.level2.neon +++ /dev/null @@ -1,56 +0,0 @@ -parameters: - checkClassCaseSensitivity: true -# checkThisOnly: false - checkPhpDocMissingReturn: false # todo: set to true - -rules: - - PHPStan\Rules\Cast\EchoRule - - PHPStan\Rules\Cast\InvalidCastRule - - PHPStan\Rules\Cast\InvalidPartOfEncapsedStringRule - - PHPStan\Rules\Cast\PrintRule - - PHPStan\Rules\Functions\IncompatibleDefaultParameterTypeRule - - PHPStan\Rules\Generics\ClassAncestorsRule - - PHPStan\Rules\Generics\ClassTemplateTypeRule - - PHPStan\Rules\Generics\FunctionTemplateTypeRule - - PHPStan\Rules\Generics\FunctionSignatureVarianceRule - - PHPStan\Rules\Generics\InterfaceAncestorsRule - - PHPStan\Rules\Generics\InterfaceTemplateTypeRule - - PHPStan\Rules\Generics\MethodTemplateTypeRule - - PHPStan\Rules\Generics\MethodSignatureVarianceRule - - PHPStan\Rules\Generics\TraitTemplateTypeRule - - PHPStan\Rules\Methods\IncompatibleDefaultParameterTypeRule - - PHPStan\Rules\Operators\InvalidBinaryOperationRule - - PHPStan\Rules\Operators\InvalidUnaryOperationRule - - PHPStan\Rules\Operators\InvalidComparisonOperationRule - - PHPStan\Rules\PhpDoc\IncompatiblePhpDocTypeRule - - PHPStan\Rules\PhpDoc\IncompatiblePropertyPhpDocTypeRule - - PHPStan\Rules\PhpDoc\InvalidPhpDocTagValueRule - - PHPStan\Rules\PhpDoc\InvalidPHPStanDocTagRule - - PHPStan\Rules\PhpDoc\InvalidThrowsPhpDocValueRule - - PHPStan\Rules\PhpDoc\WrongVariableNameInVarTagRule - -services: - - - class: PHPStan\Rules\Classes\MixinRule - arguments: - checkClassCaseSensitivity: %checkClassCaseSensitivity% - - tags: - - phpstan.rules.rule - - - - class: PHPStan\Rules\Functions\CallCallablesRule - arguments: - reportMaybes: %reportMaybes% - - tags: - - phpstan.rules.rule - - - - class: PHPStan\Rules\PhpDoc\InvalidPhpDocVarTagTypeRule - arguments: - checkClassCaseSensitivity: %checkClassCaseSensitivity% - checkMissingVarTagTypehint: %checkMissingVarTagTypehint% - - tags: - - phpstan.rules.rule diff --git a/Build/phpstan.level3.neon b/Build/phpstan.level3.neon index a93009e2bd2c5ccc26f55c0d4927c83c7322191c..7eca0f571784a41c29d8bad07c406bffe9293742 100644 --- a/Build/phpstan.level3.neon +++ b/Build/phpstan.level3.neon @@ -1,6 +1,3 @@ -includes: - - phpstan.level2.neon - rules: # - PHPStan\Rules\Arrays\AppendedArrayItemTypeRule - PHPStan\Rules\Arrays\IterableInForeachRule diff --git a/phpstan.neon b/phpstan.neon index 12b88e37a611053458a36d63638ab2068f76e735..255d7ff7b1e6513e4c078dfe963288827582a805 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -5,7 +5,13 @@ includes: # - vendor/phpstan/phpstan/conf/bleedingEdge.neon parameters: - level: 1 + level: 2 + + # level 2 parameters which are set to opposite values in the original level 2 configuration. Parameters need to be + # set to their opposite values and the resulting errors need to be fixed. Once they are fixed, the parameters can be + # removed from this file. + checkThisOnly: true + checkPhpDocMissingReturn: false # Set to true during local runs to find unmatched ignored errors. bamboo needs this to be set to false. reportUnmatchedIgnoredErrors: false