Skip to content

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

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

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

Triggered via pull request July 19, 2025 02:01
Status Cancelled
Total duration 3m 26s
Artifacts

static-analysis.yml

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

Annotations

89 errors
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 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 (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 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.
Generate baseline
Process completed with exit code 1.
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 (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.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.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.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.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)
Canceling since a higher priority waiting request for sa-calebdw/push-zypoqzwrlsns exists
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)
Canceling since a higher priority waiting request for sa-calebdw/push-zypoqzwrlsns exists
PHPStan (7.4, windows-latest)
The operation was canceled.
PHPStan (7.4, windows-latest)
Canceling since a higher priority waiting request for sa-calebdw/push-zypoqzwrlsns exists
PHPStan (8.1, windows-latest)
The operation was canceled.
PHPStan (8.1, windows-latest)
Canceling since a higher priority waiting request for sa-calebdw/push-zypoqzwrlsns exists
PHPStan (7.4, ubuntu-latest)
The operation was canceled.
PHPStan (7.4, ubuntu-latest)
Canceling since a higher priority waiting request for sa-calebdw/push-zypoqzwrlsns exists
PHPStan (8.0, windows-latest)
The operation was canceled.
PHPStan (8.0, windows-latest)
Canceling since a higher priority waiting request for sa-calebdw/push-zypoqzwrlsns exists
Static Analysis
Canceling since a higher priority waiting request for sa-calebdw/push-zypoqzwrlsns exists