-
-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PostRector] Remove parent lookup on ClassRenamingPostRector (#3959)
* [PostRector] Remove parent lookup on ClassRenamingPostRector * [ci-review] Rector Rectify * Fix cs * update kernel cache key * add fixture no namespace * Final touch: ensure reset --------- Co-authored-by: GitHub Action <actions@github.com>
- Loading branch information
1 parent
794bc8b
commit fc1fabe
Showing
3 changed files
with
52 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...r/Name/RenameClassRector/FixtureAutoImportNames/rename_class_not_inside_namespace.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
use Rector\Tests\Renaming\Rector\Name\RenameClassRector\Source\FirstNamespace\SomeServiceClass; | ||
|
||
class RenameClassNotInsideNamespace | ||
{ | ||
public function aFunction() | ||
{ | ||
$someService = new SomeServiceClass(); | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
use Rector\Tests\Renaming\Rector\Name\RenameClassRector\Source\SecondNamespace\SomeServiceClass; | ||
|
||
class RenameClassNotInsideNamespace | ||
{ | ||
public function aFunction() | ||
{ | ||
$someService = new SomeServiceClass(); | ||
} | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters