Skip to content

Commit 8cf4281

Browse files
committed
[BE] Rule about @phpstan-consistent-constructor
1 parent 6ce1743 commit 8cf4281

File tree

5 files changed

+2
-7
lines changed

5 files changed

+2
-7
lines changed

changelog-2.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Major new features 🚀
4141
* Check missing types in `@phpstan-self-out` (https://github.com/phpstan/phpstan-src/commit/892b319f25f04bc1b55c3d0063b607909612fe6d)
4242
* Check missing types in local type aliases (https://github.com/phpstan/phpstan-src/commit/ce7ffaf02d624a7fb9d38f8e5dffc9739f1233fc)
4343
* Check missing types in `@mixin` (https://github.com/phpstan/phpstan-src/commit/3175c81f26fd5bcb4a161b24e774921870ed2533)
44+
* Rule about `@phpstan-consistent-constructor` (level 0) ([#1296](https://github.com/phpstan/phpstan-src/pull/1296)), thanks @canvural!
4445
* Check code in custom PHPStan extensions for runtime reflection concepts like `is_a()` or `class_parents()` (level 0) (https://github.com/phpstan/phpstan-src/commit/c4a662ac6c3ec63f063238880b243b5399c34fcc)
4546
* Check code in custom PHPStan extensions for runtime reflection concepts like `new ReflectionMethod()` (level 0) (https://github.com/phpstan/phpstan-src/commit/536306611cbb5877b6565755cd07b87f9ccfdf08)
4647
* ApiInstanceofRule (level 0)

conf/bleedingEdge.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ parameters:
88
arrayFilter: true
99
arrayValues: true
1010
looseComparison: true
11-
consistentConstructor: true
1211
readOnlyByPhpDoc: true
1312
missingMagicSerializationRule: true
1413
alwaysCheckTooWideReturnTypeFinalMethods: true

conf/config.level0.neon

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ conditionalTags:
88
phpstan.rules.rule: %featureToggles.readOnlyByPhpDoc%
99
PHPStan\Rules\Properties\UninitializedPropertyRule:
1010
phpstan.rules.rule: %checkUninitializedProperties%
11-
PHPStan\Rules\Methods\ConsistentConstructorRule:
12-
phpstan.rules.rule: %featureToggles.consistentConstructor%
1311
PHPStan\Rules\Methods\MissingMagicSerializationMethodsRule:
1412
phpstan.rules.rule: %featureToggles.missingMagicSerializationRule%
1513
PHPStan\Rules\Constants\MagicConstantContextRule:
@@ -90,6 +88,7 @@ rules:
9088
- PHPStan\Rules\Methods\AbstractPrivateMethodRule
9189
- PHPStan\Rules\Methods\CallMethodsRule
9290
- PHPStan\Rules\Methods\CallStaticMethodsRule
91+
- PHPStan\Rules\Methods\ConsistentConstructorRule
9392
- PHPStan\Rules\Methods\ConstructorReturnTypeRule
9493
- PHPStan\Rules\Methods\ExistingClassesInTypehintsRule
9594
- PHPStan\Rules\Methods\FinalPrivateMethodRule
@@ -158,8 +157,6 @@ services:
158157
tags:
159158
- phpstan.rules.rule
160159

161-
-
162-
class: PHPStan\Rules\Methods\ConsistentConstructorRule
163160

164161
-
165162
class: PHPStan\Rules\Missing\MissingReturnRule

conf/config.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ parameters:
2929
arrayValues: false
3030
illegalConstructorMethodCall: false
3131
looseComparison: false
32-
consistentConstructor: false
3332
readOnlyByPhpDoc: false
3433
missingMagicSerializationRule: false
3534
alwaysCheckTooWideReturnTypeFinalMethods: false

conf/parametersSchema.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ parametersSchema:
3535
arrayValues: bool(),
3636
illegalConstructorMethodCall: bool(),
3737
looseComparison: bool(),
38-
consistentConstructor: bool()
3938
readOnlyByPhpDoc: bool()
4039
missingMagicSerializationRule: bool()
4140
alwaysCheckTooWideReturnTypeFinalMethods: bool()

0 commit comments

Comments
 (0)