Skip to content

Commit

Permalink
Updated Rector to commit c0c7502f55a3884f67a5885ed05ae2443ff53802
Browse files Browse the repository at this point in the history
rectorphp/rector-src@c0c7502 [DeadCode] Skip indirect next line definition of @var on RemoveNonExistingVarAnnotationRector (#6348)
  • Loading branch information
TomasVotruba committed Oct 3, 2024
1 parent 68c7b4d commit c154424
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ public function refactor(Node $node) : ?Node
// skip edge case with double comment, as impossible to resolve by PHPStan doc parser
continue;
}
if ($this->stmtsManipulator->isVariableUsedInNextStmt($node, $key + 1, $variableName)) {
continue;
}
$phpDocInfo->removeByType(VarTagValueNode::class);
$this->docBlockUpdater->updateRefactoredNodeWithPhpDocInfo($stmt);
$hasChanged = \true;
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'b88e910957a85adafd6fb75fbe50991b9ec871d1';
public const PACKAGE_VERSION = 'c0c7502f55a3884f67a5885ed05ae2443ff53802';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-10-02 16:56:58';
public const RELEASE_DATE = '2024-10-03 10:18:39';
/**
* @var int
*/
Expand Down

0 comments on commit c154424

Please sign in to comment.