Skip to content

Commit 75f223e

Browse files
committed
Add missing ->enterDeep() calls
1 parent 01e44e0 commit 75f223e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Analyser/Generator/ExprHandler/SpaceshipHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public function supports(Expr $expr): bool
3333

3434
public function analyseExpr(Stmt $stmt, Expr $expr, GeneratorScope $scope, ExpressionContext $context, ?callable $alternativeNodeCallback): Generator
3535
{
36-
$leftResult = yield new ExprAnalysisRequest($stmt, $expr->left, $scope, $context, $alternativeNodeCallback);
37-
$rightResult = yield new ExprAnalysisRequest($stmt, $expr->right, $leftResult->scope, $context, $alternativeNodeCallback);
36+
$leftResult = yield new ExprAnalysisRequest($stmt, $expr->left, $scope, $context->enterDeep(), $alternativeNodeCallback);
37+
$rightResult = yield new ExprAnalysisRequest($stmt, $expr->right, $leftResult->scope, $context->enterDeep(), $alternativeNodeCallback);
3838

3939
return new ExprAnalysisResult(
4040
$this->initializerExprTypeResolver->getSpaceshipTypeFromTypes($leftResult->type, $rightResult->type),

0 commit comments

Comments
 (0)