mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-13 03:52:15 +02:00
Updated Rector to commit 5e0f1ce34354497a5163bbd51dddf91cb5c82207
5e0f1ce343
[DeadCode] Skip value variable used in throw stmts in catch on UnusedForeachValueToArrayKeysRector (#6607)
This commit is contained in:
parent
d257e68fbf
commit
6d48540b47
@ -115,7 +115,7 @@ CODE_SAMPLE
|
||||
if ($this->isVariableUsedInForeach($stmt->valueVar, $stmt)) {
|
||||
continue;
|
||||
}
|
||||
if ($this->stmtsManipulator->isVariableUsedInNextStmt($stmts, $key + 1, (string) $this->getName($stmt->valueVar))) {
|
||||
if ($this->stmtsManipulator->isVariableUsedInNextStmt($node, $key + 1, (string) $this->getName($stmt->valueVar))) {
|
||||
continue;
|
||||
}
|
||||
$hasChanged = \true;
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'e7e8c5bfac8df0f605d6588c3612a05cca74b017';
|
||||
public const PACKAGE_VERSION = '5e0f1ce34354497a5163bbd51dddf91cb5c82207';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-12-18 16:35:21';
|
||||
public const RELEASE_DATE = '2024-12-18 16:53:02';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user