Skip to content

feat: add optional rule to report properties that should be promoted #21814

feat: add optional rule to report properties that should be promoted

feat: add optional rule to report properties that should be promoted #21814

Triggered via pull request July 19, 2025 03:06
Status Failure
Total duration 12m 25s
Artifacts

static-analysis.yml

on: pull_request
Generate baseline
1m 41s
Generate baseline
Generate PHP baseline
1m 49s
Generate PHP baseline
Matrix: PHPStan with result cache
Matrix: PHPStan
Fit to window
Zoom out
Zoom in

Annotations

121 errors
PHPStan (8.3, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.3, ubuntu-latest): 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 (8.3, ubuntu-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L18
Instantiated class PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted not found.
PHPStan (8.3, ubuntu-latest): 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 (8.3, ubuntu-latest): 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 (8.3, ubuntu-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L13
PHPDoc tag @extends has invalid type PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted.
PHPStan (8.3, ubuntu-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L71
Argument of an invalid type array<PhpParser\Node\Stmt>|null supplied for foreach, only iterables are supported.
PHPStan (8.3, ubuntu-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L47
Strict comparison using === between array<PhpParser\Node\Param> and null will always evaluate to false.
PHPStan with result cache (8.4)
Process completed with exit code 2.
PHPStan with result cache (8.4): 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 (8.4): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L18
Instantiated class PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted not found.
PHPStan with result cache (8.4): 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 (8.4): 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 (8.4): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L13
PHPDoc tag @extends has invalid type PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted.
PHPStan with result cache (8.4): 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 (8.4): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L47
Strict comparison using === between array<PhpParser\Node\Param> and null will always evaluate to false.
Generate baseline
Process completed with exit code 1.
PHPStan with result cache (8.3)
Process completed with exit code 2.
PHPStan with result cache (8.3): 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 (8.3): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L18
Instantiated class PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted not found.
PHPStan with result cache (8.3): 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 (8.3): 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 (8.3): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L13
PHPDoc tag @extends has invalid type PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted.
PHPStan with result cache (8.3): 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 (8.3): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L47
Strict comparison using === between array<PhpParser\Node\Param> and null will always evaluate to false.
PHPStan (8.4, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.4, ubuntu-latest): 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 (8.4, ubuntu-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L18
Instantiated class PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted not found.
PHPStan (8.4, ubuntu-latest): 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 (8.4, ubuntu-latest): 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 (8.4, ubuntu-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L13
PHPDoc tag @extends has invalid type PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted.
PHPStan (8.4, ubuntu-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L71
Argument of an invalid type array<PhpParser\Node\Stmt>|null supplied for foreach, only iterables are supported.
PHPStan (8.4, ubuntu-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L47
Strict comparison using === between array<PhpParser\Node\Param> and null will always evaluate to false.
PHPStan (8.2, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.2, ubuntu-latest): 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 (8.2, ubuntu-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L18
Instantiated class PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted not found.
PHPStan (8.2, ubuntu-latest): 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 (8.2, ubuntu-latest): 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 (8.2, ubuntu-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L13
PHPDoc tag @extends has invalid type PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted.
PHPStan (8.2, ubuntu-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L71
Argument of an invalid type array<PhpParser\Node\Stmt>|null supplied for foreach, only iterables are supported.
PHPStan (8.2, ubuntu-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L47
Strict comparison using === between array<PhpParser\Node\Param> and null will always evaluate to false.
PHPStan with result cache (8.2)
Process completed with exit code 2.
PHPStan with result cache (8.2): 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 (8.2): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L18
Instantiated class PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted not found.
PHPStan with result cache (8.2): 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 (8.2): 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 (8.2): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L13
PHPDoc tag @extends has invalid type PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted.
PHPStan with result cache (8.2): 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 (8.2): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L47
Strict comparison using === between array<PhpParser\Node\Param> and null will always evaluate to false.
PHPStan (8.1, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.1, ubuntu-latest): 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 (8.1, ubuntu-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L18
Instantiated class PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted not found.
PHPStan (8.1, ubuntu-latest): 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 (8.1, ubuntu-latest): 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 (8.1, ubuntu-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L13
PHPDoc tag @extends has invalid type PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted.
PHPStan (8.1, ubuntu-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L71
Argument of an invalid type array<PhpParser\Node\Stmt>|null supplied for foreach, only iterables are supported.
PHPStan (8.1, ubuntu-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L47
Strict comparison using === between array<PhpParser\Node\Param> and null will always evaluate to false.
PHPStan (8.0, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.0, ubuntu-latest): 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 (8.0, ubuntu-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L18
Instantiated class PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted not found.
PHPStan (8.0, ubuntu-latest): 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 (8.0, ubuntu-latest): 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 (8.0, ubuntu-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L13
PHPDoc tag @extends has invalid type PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted.
PHPStan (8.0, ubuntu-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L71
Argument of an invalid type array<PhpParser\Node\Stmt>|null supplied for foreach, only iterables are supported.
PHPStan (8.0, ubuntu-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L47
Strict comparison using === between array<PhpParser\Node\Param> and null will always evaluate to false.
PHPStan (8.4, windows-latest)
Process completed with exit code 1.
PHPStan (8.4, windows-latest): 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 (8.4, windows-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L18
Instantiated class PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted not found.
PHPStan (8.4, windows-latest): 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 (8.4, windows-latest): 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 (8.4, windows-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L13
PHPDoc tag @extends has invalid type PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted.
PHPStan (8.4, windows-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L71
Argument of an invalid type array<PhpParser\Node\Stmt>|null supplied for foreach, only iterables are supported.
PHPStan (8.4, windows-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L47
Strict comparison using === between array<PhpParser\Node\Param> and null will always evaluate to false.
PHPStan (8.2, windows-latest)
Process completed with exit code 1.
PHPStan (8.2, windows-latest): 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 (8.2, windows-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L18
Instantiated class PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted not found.
PHPStan (8.2, windows-latest): 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 (8.2, windows-latest): 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 (8.2, windows-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L13
PHPDoc tag @extends has invalid type PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted.
PHPStan (8.2, windows-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L71
Argument of an invalid type array<PhpParser\Node\Stmt>|null supplied for foreach, only iterables are supported.
PHPStan (8.2, windows-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L47
Strict comparison using === between array<PhpParser\Node\Param> and null will always evaluate to false.
PHPStan (8.3, windows-latest)
Process completed with exit code 1.
PHPStan (8.3, windows-latest): 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 (8.3, windows-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L18
Instantiated class PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted not found.
PHPStan (8.3, windows-latest): 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 (8.3, windows-latest): 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 (8.3, windows-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L13
PHPDoc tag @extends has invalid type PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted.
PHPStan (8.3, windows-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L71
Argument of an invalid type array<PhpParser\Node\Stmt>|null supplied for foreach, only iterables are supported.
PHPStan (8.3, windows-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L47
Strict comparison using === between array<PhpParser\Node\Param> and null will always evaluate to false.
PHPStan (8.0, windows-latest)
Process completed with exit code 1.
PHPStan (8.0, windows-latest): 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 (8.0, windows-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L18
Instantiated class PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted not found.
PHPStan (8.0, windows-latest): 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 (8.0, windows-latest): 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 (8.0, windows-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L13
PHPDoc tag @extends has invalid type PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted.
PHPStan (8.0, windows-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L71
Argument of an invalid type array<PhpParser\Node\Stmt>|null supplied for foreach, only iterables are supported.
PHPStan (8.0, windows-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L47
Strict comparison using === between array<PhpParser\Node\Param> and null will always evaluate to false.
PHPStan (8.1, windows-latest)
Process completed with exit code 1.
PHPStan (8.1, windows-latest): 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 (8.1, windows-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L18
Instantiated class PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted not found.
PHPStan (8.1, windows-latest): 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 (8.1, windows-latest): 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 (8.1, windows-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L13
PHPDoc tag @extends has invalid type PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted.
PHPStan (8.1, windows-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L71
Argument of an invalid type array<PhpParser\Node\Stmt>|null supplied for foreach, only iterables are supported.
PHPStan (8.1, windows-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L47
Strict comparison using === between array<PhpParser\Node\Param> and null will always evaluate to false.
PHPStan (7.4, ubuntu-latest)
Process completed with exit code 2.
PHPStan (7.4, ubuntu-latest): 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 (7.4, ubuntu-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L18
Instantiated class PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted not found.
PHPStan (7.4, ubuntu-latest): 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 (7.4, ubuntu-latest): 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 (7.4, ubuntu-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L13
PHPDoc tag @extends has invalid type PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted.
PHPStan (7.4, ubuntu-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L72
Argument of an invalid type array<PhpParser\Node\Stmt>|null supplied for foreach, only iterables are supported.
PHPStan (7.4, ubuntu-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L48
Strict comparison using === between array<PhpParser\Node\Param> and null will always evaluate to false.
PHPStan (7.4, windows-latest)
Process completed with exit code 1.
PHPStan (7.4, windows-latest): 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 (7.4, windows-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L18
Instantiated class PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted not found.
PHPStan (7.4, windows-latest): 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 (7.4, windows-latest): 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 (7.4, windows-latest): tests/PHPStan/Rules/Properties/ReportPropertiesThatShouldBePromotedRuleTest.php#L13
PHPDoc tag @extends has invalid type PHPStan\Rules\Properties\ReportPropertiesThatShouldBePromoted.
PHPStan (7.4, windows-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L72
Argument of an invalid type array<PhpParser\Node\Stmt>|null supplied for foreach, only iterables are supported.
PHPStan (7.4, windows-latest): src/Rules/Properties/ReportPropertiesThatShouldBePromotedRule.php#L48
Strict comparison using === between array<PhpParser\Node\Param> and null will always evaluate to false.