Skip to content

Commit

Permalink
Revert unrelated part
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 17, 2019
1 parent 13af8bd commit 4ccf2f0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Analyser/NodeScopeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,6 @@ public function processStmtNodes(
// todo break
}

if (!$alreadyTerminated) {
$exitPoints[] = new StatementExitPoint(new Node\Stmt\Nop(), $scope);
}
$statementResult = new StatementResult($scope, $hasYield, $alreadyTerminated, $exitPoints);
if ($stmtCount === 0 && $shouldCheckLastStatement) {
/** @var Node\Stmt\Function_|Node\Stmt\ClassMethod|Expr\Closure $parentNode */
Expand Down

0 comments on commit 4ccf2f0

Please sign in to comment.