Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed May 6, 2020
1 parent 0a1e2d3 commit 2d2b9d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Analyser/MutatingScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -2873,6 +2873,8 @@ public function removeTypeFromExpression(Expr $expr, Type $typeToRemove): self
if (
!$expr instanceof Variable
&& $exprType->equals($typeAfterRemove)
&& !$exprType instanceof ErrorType
&& !$exprType instanceof NeverType
) {
return $this;
}
Expand Down

0 comments on commit 2d2b9d8

Please sign in to comment.