Skip to content

Commit 4ba55a3

Browse files
committed
Remove useless assign $parentNode = $parentNode
1 parent ed7dae5 commit 4ba55a3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,6 @@ public function processStmtNodes(
447447
$statementResult = new StatementResult($scope, $hasYield, $alreadyTerminated, $exitPoints, $throwPoints, $impurePoints);
448448
if ($stmtCount === 0 && $shouldCheckLastStatement) {
449449
/** @var Node\Stmt\Function_|Node\Stmt\ClassMethod|PropertyHookStatementNode|Expr\Closure $parentNode */
450-
$parentNode = $parentNode;
451450
$returnTypeNode = $parentNode->getReturnType();
452451
if ($parentNode instanceof Expr\Closure) {
453452
$parentNode = new Node\Stmt\Expression($parentNode, $parentNode->getAttributes());

0 commit comments

Comments
 (0)