From 1e876747d5d6180512c87ebd87d507ed89fb3283 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Thu, 5 Sep 2024 22:11:12 +0000 Subject: [PATCH] Updated Rector to commit cb96062f3cd5891fd89b419eebdd762061e82f85 https://github.com/rectorphp/rector-src/commit/cb96062f3cd5891fd89b419eebdd762061e82f85 Clean up UseImportsTraverser (#6291) --- rules/CodingStyle/ClassNameImport/UseImportsTraverser.php | 7 +++---- src/Application/VersionResolver.php | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/rules/CodingStyle/ClassNameImport/UseImportsTraverser.php b/rules/CodingStyle/ClassNameImport/UseImportsTraverser.php index ece8021342b..0872c49a18d 100644 --- a/rules/CodingStyle/ClassNameImport/UseImportsTraverser.php +++ b/rules/CodingStyle/ClassNameImport/UseImportsTraverser.php @@ -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); @@ -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); + } } } /** diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index e4c2092098f..858ec8d002a 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -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 */