Updated Rector to commit f2c8967abf004558bf92c86840d57eb7f0221f9c

f2c8967abf [DeadCode] Mirror comment on assign method call on RemoveUnusedVariableAssignRector (#5195)
This commit is contained in:
Tomas Votruba 2023-10-24 06:21:04 +00:00
parent 84884df441
commit ff69243060
2 changed files with 5 additions and 3 deletions

View File

@ -112,7 +112,9 @@ CODE_SAMPLE
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]);
}

View File

@ -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
*/