Skip to content

Commit 088518f

Browse files
committed
Fix build
1 parent 09d3488 commit 088518f

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2348,22 +2348,14 @@ static function () use ($expr, $rightResult): MutatingScope {
23482348
) {
23492349
$result = $this->processExprNode($expr->expr, $scope, $nodeCallback, $context->enterDeep());
23502350
$throwPoints = $result->getThrowPoints();
2351-
if ($expr instanceof Expr\YieldFrom) {
2352-
$hasYield = true;
2353-
} else {
2354-
$hasYield = $result->hasYield();
2355-
}
2351+
$hasYield = $result->hasYield();
23562352

23572353
$scope = $result->getScope();
23582354
} elseif ($expr instanceof Expr\YieldFrom) {
23592355
$result = $this->processExprNode($expr->expr, $scope, $nodeCallback, $context->enterDeep());
23602356
$throwPoints = $result->getThrowPoints();
23612357
$throwPoints[] = ThrowPoint::createImplicit($scope);
2362-
if ($expr instanceof Expr\YieldFrom) {
2363-
$hasYield = true;
2364-
} else {
2365-
$hasYield = $result->hasYield();
2366-
}
2358+
$hasYield = true;
23672359

23682360
$scope = $result->getScope();
23692361
} elseif ($expr instanceof BooleanNot) {

0 commit comments

Comments
 (0)