Report bool properties as too wide when only used with true/false #22340
static-analysis.yml
on: pull_request
Generate baseline
1m 47s
Generate PHP baseline
1m 47s
Matrix: PHPStan with result cache
Matrix: PHPStan
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
|