File tree Expand file tree Collapse file tree
tests/PHPStan/Analyser/nsrt Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3234,14 +3234,11 @@ public function filterBySpecifiedTypes(SpecifiedTypes $specifiedTypes): self
32343234
32353235 foreach ($ conditionalExpressions as $ conditionalExpression ) {
32363236 foreach ($ conditionalExpression ->getConditionExpressionTypeHolders () as $ holderExprString => $ conditionalTypeHolder ) {
3237- if (!array_key_exists ($ holderExprString , $ specifiedExpressions )) {
3238- continue 2 ;
3239- }
3240- $ specifiedHolder = $ specifiedExpressions [$ holderExprString ];
3241- if (!$ specifiedHolder ->getCertainty ()->equals ($ conditionalTypeHolder ->getCertainty ())) {
3242- continue 2 ;
3243- }
3244- if (!$ conditionalTypeHolder ->getType ()->isSuperTypeOf ($ specifiedHolder ->getType ())->yes ()) {
3237+ if (
3238+ !array_key_exists ($ holderExprString , $ specifiedExpressions )
3239+ || !$ specifiedExpressions [$ holderExprString ]->getCertainty ()->equals ($ conditionalTypeHolder ->getCertainty ())
3240+ || !$ conditionalTypeHolder ->getType ()->isSuperTypeOf ($ specifiedExpressions [$ holderExprString ]->getType ())->yes ()
3241+ ) {
32453242 continue 2 ;
32463243 }
32473244 }
Original file line number Diff line number Diff line change 1- <?php
1+ <?php // lint >= 8.0
22
33declare (strict_types = 1 );
44
You can’t perform that action at this time.
0 commit comments