-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(FullyQualifiedNamespace): Fix fixer for new use statement group (…
…#3214374)
- Loading branch information
Showing
6 changed files
with
63 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
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,9 @@ | ||
<?php | ||
|
||
namespace Namespace2; | ||
|
||
/** | ||
* Class C's description. | ||
*/ | ||
class C extends \Namespace1\D { | ||
} |
11 changes: 11 additions & 0 deletions
11
tests/Drupal/Classes/FullyQualifiedNamespaceUnitTest.2.inc.fixed
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 Namespace2; | ||
|
||
use Namespace1\D; | ||
|
||
/** | ||
* Class C's description. | ||
*/ | ||
class C extends D { | ||
} |
11 changes: 11 additions & 0 deletions
11
tests/Drupal/Classes/FullyQualifiedNamespaceUnitTest.3.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 | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Namespace2; | ||
|
||
/** | ||
* Class C's description. | ||
*/ | ||
class C extends \Namespace1\D implements \Namespace1\I { | ||
} |
14 changes: 14 additions & 0 deletions
14
tests/Drupal/Classes/FullyQualifiedNamespaceUnitTest.3.inc.fixed
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 | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Namespace2; | ||
|
||
use Namespace1\I; | ||
use Namespace1\D; | ||
|
||
/** | ||
* Class C's description. | ||
*/ | ||
class C extends D implements I { | ||
} |
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