Skip to content

Commit b4c7736

Browse files
ArshidArshid
authored andcommitted
Revert "[AutoImport] Do not rename different namespaced function on auto import + RenameFunctionRector (#7214)"
This reverts commit 084fd1f.
1 parent bcdbb91 commit b4c7736

3 files changed

Lines changed: 0 additions & 31 deletions

File tree

src/NodeNameResolver/NodeNameResolver/FuncCallNameResolver.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ public function resolve(Node $node, ?Scope $scope): ?string
4949
}
5050
}
5151

52-
if (is_string($namespaceName)) {
53-
return $namespaceName;
54-
}
55-
5652
return (string) $node->name;
5753
}
5854
}

tests/Issues/AutoImport/Fixture/do_not_rename_different_namespaced_function.php.inc

Lines changed: 0 additions & 23 deletions
This file was deleted.

tests/Issues/AutoImport/config/configured_rule.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Rector\Php70\Rector\Ternary\TernaryToNullCoalescingRector;
88
use Rector\Php80\Rector\Class_\AnnotationToAttributeRector;
99
use Rector\Php80\ValueObject\AnnotationToAttribute;
10-
use Rector\Renaming\Rector\FuncCall\RenameFunctionRector;
1110
use Rector\Renaming\Rector\Name\RenameClassRector;
1211
use Rector\Symfony\Symfony44\Rector\ClassMethod\ConsoleExecuteReturnIntRector;
1312

@@ -23,7 +22,4 @@
2322
new AnnotationToAttribute('Doctrine\ORM\Mapping\Entity'),
2423
]);
2524
$rectorConfig->rules([ConsoleExecuteReturnIntRector::class, RemoveUnusedPrivatePropertyRector::class]);
26-
$rectorConfig->ruleWithConfiguration(RenameFunctionRector::class, [
27-
'split' => 'explode',
28-
]);
2925
};

0 commit comments

Comments
 (0)