Skip to content

Commit

Permalink
Fix after TypeSpecifier BC break
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 13, 2024
1 parent 3faa605 commit 4d861e0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ public static function specifyTypes(
$scope,
$expression,
TypeSpecifierContext::createTruthy(),
$bypassAlwaysTrueIssue ? new Expr\BinaryOp\BooleanAnd($expression, new Expr\Variable('nonsense')) : null,
);
)->setRootExpr($bypassAlwaysTrueIssue ? new Expr\BinaryOp\BooleanAnd($expression, new Expr\Variable('nonsense')) : $expression);
}

/**
Expand Down

0 comments on commit 4d861e0

Please sign in to comment.