Skip to content

Commit

Permalink
Trigger Rectify (#4997)
Browse files Browse the repository at this point in the history
* Trigger Rectify

* [ci-review] Rector Rectify

---------

Co-authored-by: GitHub Action <actions@github.com>
  • Loading branch information
samsonasik and actions-user committed Sep 11, 2023
1 parent ed0be50 commit 9e7367c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rules/CodingStyle/ClassNameImport/UseImportsTraverser.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private function traverseForType(array $stmts, callable $callable, int $desiredT
$this->simpleCallableNodeTraverser->traverseNodesWithCallable($stmts, function (Node $node) use (
$callable,
$desiredType
) {
): ?int {
if ($node instanceof Namespace_ || $node instanceof FileWithoutNamespace) {
// traverse into namespaces
return null;
Expand All @@ -71,6 +71,7 @@ private function traverseForType(array $stmts, callable $callable, int $desiredT
if ($name === null) {
continue;
}

$callable($useUse, $name);
}
} elseif ($node instanceof GroupUse) {
Expand Down

0 comments on commit 9e7367c

Please sign in to comment.