mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
Updated Rector to commit a56ee1ed01bbbdae515b49fe4d820f219208f768
a56ee1ed01
[DeadCode] Fix infinite loop on RemoveDeadStmtRector + RemoveUnusedVariableAssignRector (#5666)
This commit is contained in:
parent
d34d554ada
commit
d24ee522ce
@ -84,12 +84,13 @@ CODE_SAMPLE
|
||||
if ($livingCode === [$node->expr]) {
|
||||
return null;
|
||||
}
|
||||
$node->expr = \array_shift($livingCode);
|
||||
$newNode = clone $node;
|
||||
$newNode->expr = \array_shift($livingCode);
|
||||
$newNodes = [];
|
||||
foreach ($livingCode as $singleLivingCode) {
|
||||
$newNodes[] = new Expression($singleLivingCode);
|
||||
}
|
||||
$newNodes[] = $node;
|
||||
$newNodes[] = $newNode;
|
||||
return $newNodes;
|
||||
}
|
||||
private function hasGetMagic(Expression $expression) : bool
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '58abec4c5663a5d92ac6cd0a2eef6aace80ab408';
|
||||
public const PACKAGE_VERSION = 'a56ee1ed01bbbdae515b49fe4d820f219208f768';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-02-25 00:26:08';
|
||||
public const RELEASE_DATE = '2024-02-27 19:09:04';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user