Skip to content

Commit

Permalink
Updated Rector to commit cb96062f3cd5891fd89b419eebdd762061e82f85
Browse files Browse the repository at this point in the history
rectorphp/rector-src@cb96062 Clean up UseImportsTraverser (#6291)
  • Loading branch information
TomasVotruba committed Sep 5, 2024
1 parent 41a5fd7 commit 1e87674
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions rules/CodingStyle/ClassNameImport/UseImportsTraverser.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ public function traverserStmts(array $stmts, callable $callable) : void
$this->traverserStmts($stmt->stmts, $callable);
continue;
}
if (!$stmt instanceof Use_ && !$stmt instanceof GroupUse) {
continue;
}
if ($stmt instanceof Use_) {
foreach ($stmt->uses as $useUse) {
$name = $this->nodeNameResolver->getName($useUse);
Expand All @@ -45,7 +42,9 @@ public function traverserStmts(array $stmts, callable $callable) : void
}
continue;
}
$this->processGroupUse($stmt, $callable);
if ($stmt instanceof GroupUse) {
$this->processGroupUse($stmt, $callable);
}
}
}
/**
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 = 'e2b96d4f6efda2db3bf6a1074b67fcf2439e848d';
public const PACKAGE_VERSION = 'cb96062f3cd5891fd89b419eebdd762061e82f85';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-09-05 21:43:30';
public const RELEASE_DATE = '2024-09-05 22:08:54';
/**
* @var int
*/
Expand Down

0 comments on commit 1e87674

Please sign in to comment.