Skip to content

Commit

Permalink
Updated Rector to commit f2c8967abf004558bf92c86840d57eb7f0221f9c
Browse files Browse the repository at this point in the history
rectorphp/rector-src@f2c8967 [DeadCode] Mirror comment on assign method call on RemoveUnusedVariableAssignRector (#5195)
  • Loading branch information
TomasVotruba committed Oct 24, 2023
1 parent 84884df commit ff69243
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ public function refactorWithScope(Node $node, Scope $scope) : ?ClassMethod
if ($this->hasCallLikeInAssignExpr($assign, $scope)) {
// clean safely
$cleanAssignedExpr = $this->cleanCastedExpr($assign->expr);
$node->stmts[$stmtPosition] = new Expression($cleanAssignedExpr);
$newExpression = new Expression($cleanAssignedExpr);
$this->mirrorComments($newExpression, $currentStmt);
$node->stmts[$stmtPosition] = $newExpression;
} else {
unset($node->stmts[$stmtPosition]);
}
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 = '3e505e5d39a709a67f2400dc647a48a697b0baf1';
public const PACKAGE_VERSION = 'f2c8967abf004558bf92c86840d57eb7f0221f9c';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-10-23 21:36:58';
public const RELEASE_DATE = '2023-10-24 13:17:32';
/**
* @var int
*/
Expand Down

0 comments on commit ff69243

Please sign in to comment.