mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-27 21:23:31 +00:00
Updated Rector to commit f2c8967abf004558bf92c86840d57eb7f0221f9c
f2c8967abf
[DeadCode] Mirror comment on assign method call on RemoveUnusedVariableAssignRector (#5195)
This commit is contained in:
parent
84884df441
commit
ff69243060
|
@ -112,7 +112,9 @@ CODE_SAMPLE
|
||||||
if ($this->hasCallLikeInAssignExpr($assign, $scope)) {
|
if ($this->hasCallLikeInAssignExpr($assign, $scope)) {
|
||||||
// clean safely
|
// clean safely
|
||||||
$cleanAssignedExpr = $this->cleanCastedExpr($assign->expr);
|
$cleanAssignedExpr = $this->cleanCastedExpr($assign->expr);
|
||||||
$node->stmts[$stmtPosition] = new Expression($cleanAssignedExpr);
|
$newExpression = new Expression($cleanAssignedExpr);
|
||||||
|
$this->mirrorComments($newExpression, $currentStmt);
|
||||||
|
$node->stmts[$stmtPosition] = $newExpression;
|
||||||
} else {
|
} else {
|
||||||
unset($node->stmts[$stmtPosition]);
|
unset($node->stmts[$stmtPosition]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = '3e505e5d39a709a67f2400dc647a48a697b0baf1';
|
public const PACKAGE_VERSION = 'f2c8967abf004558bf92c86840d57eb7f0221f9c';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2023-10-23 21:36:58';
|
public const RELEASE_DATE = '2023-10-24 13:17:32';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user