Skip to content

Commit 06a741d

Browse files
committed
Require missing typehints - moved to phpstan/phpstan as new level after 5
1 parent 9c38482 commit 06a741d

17 files changed

+0
-669
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
* Disallow variable variables (`$$foo`, `$this->$method()` etc.)
2323
* Disallow overwriting variables with foreach key and value variables
2424
* Always true `instanceof`, type-checking `is_*` functions and strict comparisons `===`/`!==`. These checks can be turned off by setting `checkAlwaysTrueInstanceof`/`checkAlwaysTrueCheckTypeFunctionCall`/`checkAlwaysTrueStrictComparison` to false.
25-
* Require parameter and return typehints for functions and methods (either native or phpDocs)
2625
* Correct case for referenced and called function names.
2726
* Correct case for inherited and implemented method names.
2827
* Contravariance for parameter types and covariance for return types in inherited methods (also known as Liskov substitution principle - LSP)

rules.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ rules:
2222
- PHPStan\Rules\DisallowedConstructs\DisallowedEmptyRule
2323
- PHPStan\Rules\DisallowedConstructs\DisallowedImplicitArrayCreationRule
2424
- PHPStan\Rules\ForeachLoop\OverwriteVariablesWithForeachRule
25-
- PHPStan\Rules\Functions\MissingFunctionParameterTypehintRule
26-
- PHPStan\Rules\Functions\MissingFunctionReturnTypehintRule
27-
- PHPStan\Rules\Methods\MissingMethodParameterTypehintRule
28-
- PHPStan\Rules\Methods\MissingMethodReturnTypehintRule
2925
- PHPStan\Rules\Methods\WrongCaseOfInheritedMethodRule
3026
- PHPStan\Rules\Operators\OperandInArithmeticPostDecrementRule
3127
- PHPStan\Rules\Operators\OperandInArithmeticPostIncrementRule
@@ -37,7 +33,6 @@ rules:
3733
- PHPStan\Rules\Operators\OperandsInArithmeticModuloRule
3834
- PHPStan\Rules\Operators\OperandsInArithmeticMultiplicationRule
3935
- PHPStan\Rules\Operators\OperandsInArithmeticSubtractionRule
40-
- PHPStan\Rules\Properties\MissingPropertyTypehintRule
4136
- PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsRule
4237
- PHPStan\Rules\StrictCalls\StrictFunctionCallsRule
4338
- PHPStan\Rules\SwitchConditions\MatchingTypeInSwitchCaseConditionRule

src/Rules/Functions/MissingFunctionParameterTypehintRule.php

Lines changed: 0 additions & 68 deletions
This file was deleted.

src/Rules/Functions/MissingFunctionReturnTypehintRule.php

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/Rules/Methods/MissingMethodParameterTypehintRule.php

Lines changed: 0 additions & 70 deletions
This file was deleted.

src/Rules/Methods/MissingMethodReturnTypehintRule.php

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/Rules/Properties/MissingPropertyTypehintRule.php

Lines changed: 0 additions & 47 deletions
This file was deleted.

tests/Rules/Functions/MissingFunctionParameterTypehintRuleTest.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

tests/Rules/Functions/MissingFunctionReturnTypehintRuleTest.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)