-
-
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.
[CodingStyle] Skip RemoveUnusedAliasRector when same class in use sta…
…tement exists, but not used (#732) * [CodingStyle] Skip RemoveUnusedAliasRector used by return method call * update fixture * update fixture * Fixed 🎉 * clean up * [ci-review] Rector Rectify * no scope handling Co-authored-by: GitHub Action <action@github.com>
- Loading branch information
1 parent
138aa5e
commit 1cc465b
Showing
2 changed files
with
32 additions
and
9 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...or/Use_/RemoveUnusedAliasRector/Fixture/skip_same_class_in_use_statement_not_used.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,14 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\CodingStyle\Rector\Use_\RemoveUnusedAliasRector\Fixture; | ||
|
||
use Rector\Tests\CodingStyle\Rector\Use_\RemoveUnusedAliasRector\Source\StandaloneClass; | ||
use Rector\Tests\CodingStyle\Rector\Use_\RemoveUnusedAliasRector\Source\DifferentNamespace\StandaloneClass as StandaloneClassDifferentNamespace; | ||
|
||
class SkipSameClassInUseStatementNotUsed | ||
{ | ||
public function run() | ||
{ | ||
return new StandaloneClassDifferentNamespace(); | ||
} | ||
} |
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