feat: add optional rule to report properties that should be promoted #21814
Annotations
8 errors
PHPStan with result cache
Process completed with exit code 2.
|
PHPStan with result cache:
tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L18
Method PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromotedRuleTest::getRule() should return PHPStan\Rules\Rule but returns PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted.
|
PHPStan with result cache:
tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L18
Instantiated class PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted not found.
|
PHPStan with result cache:
tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L16
Method PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromotedRuleTest::getRule() return type with generic interface PHPStan\Rules\Rule does not specify its types: TNodeType
|
PHPStan with result cache:
tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L13
Type PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted in generic type PHPStan\Testing\RuleTestCase<PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted> in PHPDoc tag @extends is not subtype of template type TRule of PHPStan\Rules\Rule of class PHPStan\Testing\RuleTestCase.
|
PHPStan with result cache:
tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L13
PHPDoc tag @extends has invalid type PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted.
|
PHPStan with result cache:
src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L71
Argument of an invalid type array<PhpParser\Node\Stmt>|null supplied for foreach, only iterables are supported.
|
PHPStan with result cache:
src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L47
Strict comparison using === between array<PhpParser\Node\Param> and null will always evaluate to false.
|
Loading