We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f91cb0 commit 6b5e8e6Copy full SHA for 6b5e8e6
1 file changed
src/Analyser/ExprHandler/AssignHandler.php
@@ -877,9 +877,10 @@ private function processSureTypesForConditionalExpressionsAfterAssign(
877
|| $expr instanceof MethodCall
878
|| $expr instanceof Expr\StaticCall
879
)
880
- && $isImpure
881
) {
882
- continue;
+ if ($isImpure) {
+ continue;
883
+ }
884
} elseif (
885
!$expr instanceof PropertyFetch
886
&& !$expr instanceof ArrayDimFetch
@@ -931,9 +932,10 @@ private function processSureNotTypesForConditionalExpressionsAfterAssign(
931
932
933
934
935
936
937
938
939
940
941
0 commit comments