Skip to content

Commit 18e1d27

Browse files
committed
remove the @var too
1 parent 7732feb commit 18e1d27

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ public function processStmtNodes(
395395
$hasYield = $hasYield || $statementResult->hasYield();
396396

397397
if ($shouldCheckLastStatement && $isLast) {
398-
/** @var Node\Stmt\Function_|Node\Stmt\ClassMethod|PropertyHookStatementNode|Expr\Closure $parentNode */
399398
$endStatements = $statementResult->getEndStatements();
400399
if (count($endStatements) > 0) {
401400
foreach ($endStatements as $endStatement) {
@@ -444,7 +443,6 @@ public function processStmtNodes(
444443

445444
$statementResult = new StatementResult($scope, $hasYield, $alreadyTerminated, $exitPoints, $throwPoints, $impurePoints);
446445
if ($stmtCount === 0 && $shouldCheckLastStatement) {
447-
/** @var Node\Stmt\Function_|Node\Stmt\ClassMethod|PropertyHookStatementNode|Expr\Closure $parentNode */
448446
$returnTypeNode = $parentNode->getReturnType();
449447
if ($parentNode instanceof Expr\Closure) {
450448
$parentNode = new Node\Stmt\Expression($parentNode, $parentNode->getAttributes());

0 commit comments

Comments
 (0)