Skip to content

Commit

Permalink
UninitializedPropertyRule should be always reported when `checkUninit…
Browse files Browse the repository at this point in the history
…ializedProperties` is enabled
  • Loading branch information
ondrejmirtes committed Jan 5, 2025
1 parent 59ccf55 commit ca86412
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
12 changes: 0 additions & 12 deletions conf/config.level0.neon
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
parameters:
customRulesetUsed: false

conditionalTags:
PHPStan\Rules\Properties\UninitializedPropertyRule:
phpstan.rules.rule: %checkUninitializedProperties%

rules:
- PHPStan\Rules\Api\ApiInstanceofRule
- PHPStan\Rules\Api\ApiInstanceofTypeRule
Expand Down Expand Up @@ -218,9 +214,6 @@ services:
tags:
- phpstan.rules.rule

-
class: PHPStan\Rules\Properties\UninitializedPropertyRule

-
class: PHPStan\Rules\Properties\WritingToReadOnlyPropertiesRule
arguments:
Expand Down Expand Up @@ -250,11 +243,6 @@ services:
tags:
- phpstan.rules.rule

-
class: PHPStan\Reflection\ConstructorsHelper
arguments:
additionalConstructors: %additionalConstructors%

-
class: PHPStan\Rules\Keywords\RequireFileExistsRule
arguments:
Expand Down
10 changes: 10 additions & 0 deletions conf/config.neon
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ conditionalTags:
phpstan.rules.rule: %exceptions.check.missingCheckedExceptionInThrows%
PHPStan\Rules\Exceptions\MissingCheckedExceptionInPropertyHookThrowsRule:
phpstan.rules.rule: %exceptions.check.missingCheckedExceptionInThrows%
PHPStan\Rules\Properties\UninitializedPropertyRule:
phpstan.rules.rule: %checkUninitializedProperties%

services:
-
Expand Down Expand Up @@ -734,6 +736,11 @@ services:
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension

-
class: PHPStan\Reflection\ConstructorsHelper
arguments:
additionalConstructors: %additionalConstructors%

-
class: PHPStan\Reflection\RequireExtension\RequireExtendsMethodsClassReflectionExtension

Expand Down Expand Up @@ -1037,6 +1044,9 @@ services:
reportMagicProperties: %reportMagicProperties%
checkDynamicProperties: %checkDynamicProperties%

-
class: PHPStan\Rules\Properties\UninitializedPropertyRule

-
class: PHPStan\Rules\Properties\LazyReadWritePropertiesExtensionProvider

Expand Down

0 comments on commit ca86412

Please sign in to comment.