We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 543ac61 commit 9fdaaddCopy full SHA for 9fdaadd
1 file changed
tests/PHPStan/Rules/Comparison/Bug14534Test.php
@@ -18,9 +18,10 @@ protected function getRule(): Rule
18
return new StrictComparisonOfDifferentTypesRule(
19
self::getContainer()->getByType(RicherScopeGetTypeHelper::class),
20
new PossiblyImpureTipHelper(true),
21
- true,
22
23
+ self::getContainer()->getByType(ConstantConditionInTraitHelper::class),
+ treatPhpDocTypesAsCertain: true,
+ reportAlwaysTrueInLastCondition: true,
24
+ treatPhpDocTypesAsCertainTip: true,
25
);
26
}
27
0 commit comments