Skip to content

Commit

Permalink
Ensure same behaviour as before on UseImportsTraverser (#6290)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik authored Sep 5, 2024
1 parent 246de2d commit e2b96d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/CodingStyle/ClassNameImport/UseImportsTraverser.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function traverserStmts(array $stmts, callable $callable): void
foreach ($stmts as $stmt) {
if ($stmt instanceof Namespace_ || $stmt instanceof FileWithoutNamespace) {
$this->traverserStmts($stmt->stmts, $callable);
return;
continue;
}

if (! $stmt instanceof Use_ && ! $stmt instanceof GroupUse) {
Expand Down

0 comments on commit e2b96d4

Please sign in to comment.