-
-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Renaming] Fix duplicate namespacing on RenameNamespaceRector (#1759)
Co-authored-by: Harings Rob <haringsrob@gmail.com> Co-authored-by: GitHub Action <action@github.com>
- Loading branch information
1 parent
2468277
commit 8320d29
Showing
5 changed files
with
57 additions
and
33 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
rules-tests/Renaming/Rector/Namespace_/RenameNamespaceRector/Fixture/fixture6.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 | ||
|
||
namespace App\Repositories; | ||
|
||
class BlogRepository { | ||
} | ||
|
||
function index() | ||
{ | ||
\App\Repositories\BlogRepository::class; | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace App\Repositories\Example; | ||
|
||
class BlogRepository { | ||
} | ||
|
||
function index() | ||
{ | ||
\App\Repositories\Example\BlogRepository::class; | ||
} | ||
|
||
?> |
11 changes: 11 additions & 0 deletions
11
...sts/Renaming/Rector/Namespace_/RenameNamespaceRector/Fixture/skip_already_changed.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,11 @@ | ||
<?php | ||
|
||
namespace App\Repositories\Example; | ||
|
||
class BlogRepository { | ||
} | ||
|
||
function index() | ||
{ | ||
\App\Repositories\Example\BlogRepository::class; | ||
} |
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
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
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