Skip to content

Report bool properties as too wide when only used with true/false #22340

Report bool properties as too wide when only used with true/false

Report bool properties as too wide when only used with true/false #22340

Triggered via pull request August 14, 2025 11:12
Status Failure
Total duration 13m 8s
Artifacts

static-analysis.yml

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

Annotations

60 errors and 7 notices
PHPStan (8.0, ubuntu-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L30
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\LogicalXorConstantConditionRule constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.0, ubuntu-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L28
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ConstantConditionRuleHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.0, ubuntu-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L26
Parameter #4 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ImpossibleCheckTypeHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.0, ubuntu-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L14
Property PHPStan\Rules\Comparison\LogicalXorConstantConditionRuleTest::$treatPhpDocTypesAsCertain has unknown class PHPStan\Rules\Comparison\true as its type.
PHPStan (8.0, ubuntu-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L35
Method PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRuleTest::shouldTreatPhpDocTypesAsCertain() should return bool but returns PHPStan\Rules\Comparison\true.
PHPStan (8.0, ubuntu-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L28
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRule constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.0, ubuntu-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L26
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ConstantConditionRuleHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.0, ubuntu-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L24
Parameter #4 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ImpossibleCheckTypeHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.0, ubuntu-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L14
Property PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRuleTest::$treatPhpDocTypesAsCertain has unknown class PHPStan\Rules\Comparison\true as its type.
PHPStan (8.0, ubuntu-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L14
Property PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRuleTest::$treatPhpDocTypesAsCertain (PHPStan\Rules\Comparison\true) does not accept default value of type true.
PHPStan (8.1, ubuntu-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L30
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\LogicalXorConstantConditionRule constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.1, ubuntu-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L28
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ConstantConditionRuleHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.1, ubuntu-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L26
Parameter #4 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ImpossibleCheckTypeHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.1, ubuntu-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L14
Property PHPStan\Rules\Comparison\LogicalXorConstantConditionRuleTest::$treatPhpDocTypesAsCertain has unknown class PHPStan\Rules\Comparison\true as its type.
PHPStan (8.1, ubuntu-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L35
Method PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRuleTest::shouldTreatPhpDocTypesAsCertain() should return bool but returns PHPStan\Rules\Comparison\true.
PHPStan (8.1, ubuntu-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L28
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRule constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.1, ubuntu-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L26
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ConstantConditionRuleHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.1, ubuntu-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L24
Parameter #4 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ImpossibleCheckTypeHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.1, ubuntu-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L14
Property PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRuleTest::$treatPhpDocTypesAsCertain has unknown class PHPStan\Rules\Comparison\true as its type.
PHPStan (8.1, ubuntu-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L14
Property PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRuleTest::$treatPhpDocTypesAsCertain (PHPStan\Rules\Comparison\true) does not accept default value of type true.
PHPStan (8.0, windows-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L30
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\LogicalXorConstantConditionRule constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.0, windows-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L28
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ConstantConditionRuleHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.0, windows-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L26
Parameter #4 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ImpossibleCheckTypeHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.0, windows-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L14
Property PHPStan\Rules\Comparison\LogicalXorConstantConditionRuleTest::$treatPhpDocTypesAsCertain has unknown class PHPStan\Rules\Comparison\true as its type.
PHPStan (8.0, windows-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L35
Method PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRuleTest::shouldTreatPhpDocTypesAsCertain() should return bool but returns PHPStan\Rules\Comparison\true.
PHPStan (8.0, windows-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L28
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRule constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.0, windows-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L26
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ConstantConditionRuleHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.0, windows-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L24
Parameter #4 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ImpossibleCheckTypeHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.0, windows-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L14
Property PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRuleTest::$treatPhpDocTypesAsCertain has unknown class PHPStan\Rules\Comparison\true as its type.
PHPStan (8.0, windows-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L14
Property PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRuleTest::$treatPhpDocTypesAsCertain (PHPStan\Rules\Comparison\true) does not accept default value of type true.
PHPStan (8.1, windows-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L30
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\LogicalXorConstantConditionRule constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.1, windows-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L28
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ConstantConditionRuleHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.1, windows-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L26
Parameter #4 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ImpossibleCheckTypeHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.1, windows-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L14
Property PHPStan\Rules\Comparison\LogicalXorConstantConditionRuleTest::$treatPhpDocTypesAsCertain has unknown class PHPStan\Rules\Comparison\true as its type.
PHPStan (8.1, windows-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L35
Method PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRuleTest::shouldTreatPhpDocTypesAsCertain() should return bool but returns PHPStan\Rules\Comparison\true.
PHPStan (8.1, windows-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L28
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRule constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.1, windows-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L26
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ConstantConditionRuleHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.1, windows-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L24
Parameter #4 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ImpossibleCheckTypeHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (8.1, windows-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L14
Property PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRuleTest::$treatPhpDocTypesAsCertain has unknown class PHPStan\Rules\Comparison\true as its type.
PHPStan (8.1, windows-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L14
Property PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRuleTest::$treatPhpDocTypesAsCertain (PHPStan\Rules\Comparison\true) does not accept default value of type true.
PHPStan (7.4, ubuntu-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L26
Parameter #4 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ImpossibleCheckTypeHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (7.4, ubuntu-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L16
Property PHPStan\Rules\Comparison\LogicalXorConstantConditionRuleTest::$reportAlwaysTrueInLastCondition has unknown class PHPStan\Rules\Comparison\false as its type.
PHPStan (7.4, ubuntu-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L16
Property PHPStan\Rules\Comparison\LogicalXorConstantConditionRuleTest::$reportAlwaysTrueInLastCondition (PHPStan\Rules\Comparison\false) does not accept default value of type false.
PHPStan (7.4, ubuntu-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L14
Property PHPStan\Rules\Comparison\LogicalXorConstantConditionRuleTest::$treatPhpDocTypesAsCertain has unknown class PHPStan\Rules\Comparison\true as its type.
PHPStan (7.4, ubuntu-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L35
Method PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRuleTest::shouldTreatPhpDocTypesAsCertain() should return bool but returns PHPStan\Rules\Comparison\true.
PHPStan (7.4, ubuntu-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L28
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRule constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (7.4, ubuntu-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L26
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ConstantConditionRuleHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (7.4, ubuntu-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L24
Parameter #4 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ImpossibleCheckTypeHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (7.4, ubuntu-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L14
Property PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRuleTest::$treatPhpDocTypesAsCertain has unknown class PHPStan\Rules\Comparison\true as its type.
PHPStan (7.4, ubuntu-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L14
Property PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRuleTest::$treatPhpDocTypesAsCertain (PHPStan\Rules\Comparison\true) does not accept default value of type true.
PHPStan (7.4, windows-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L26
Parameter #4 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ImpossibleCheckTypeHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (7.4, windows-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L16
Property PHPStan\Rules\Comparison\LogicalXorConstantConditionRuleTest::$reportAlwaysTrueInLastCondition has unknown class PHPStan\Rules\Comparison\false as its type.
PHPStan (7.4, windows-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L16
Property PHPStan\Rules\Comparison\LogicalXorConstantConditionRuleTest::$reportAlwaysTrueInLastCondition (PHPStan\Rules\Comparison\false) does not accept default value of type false.
PHPStan (7.4, windows-latest): tests/PHPStan/Rules/Comparison/LogicalXorConstantConditionRuleTest.php#L14
Property PHPStan\Rules\Comparison\LogicalXorConstantConditionRuleTest::$treatPhpDocTypesAsCertain has unknown class PHPStan\Rules\Comparison\true as its type.
PHPStan (7.4, windows-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L35
Method PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRuleTest::shouldTreatPhpDocTypesAsCertain() should return bool but returns PHPStan\Rules\Comparison\true.
PHPStan (7.4, windows-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L28
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRule constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (7.4, windows-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L26
Parameter #2 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ConstantConditionRuleHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (7.4, windows-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L24
Parameter #4 $treatPhpDocTypesAsCertain of class PHPStan\Rules\Comparison\ImpossibleCheckTypeHelper constructor expects bool, PHPStan\Rules\Comparison\true given.
PHPStan (7.4, windows-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L14
Property PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRuleTest::$treatPhpDocTypesAsCertain has unknown class PHPStan\Rules\Comparison\true as its type.
PHPStan (7.4, windows-latest): tests/PHPStan/Rules/Comparison/DoWhileLoopConstantConditionRuleTest.php#L14
Property PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRuleTest::$treatPhpDocTypesAsCertain (PHPStan\Rules\Comparison\true) does not accept default value of type true.
PHPStan (8.4, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
PHPStan (8.2, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
PHPStan (8.5, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
PHPStan (8.3, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
PHPStan (8.0, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
PHPStan (8.1, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
PHPStan (7.4, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677