-
-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Transform] Skip transitional interface in AddInterfaceByTraitRector (#…
…2898) Co-authored-by: buffcode <buffcode@users.noreply.github.com>
- Loading branch information
1 parent
e9bcacc
commit a911c08
Showing
7 changed files
with
50 additions
and
26 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
11 changes: 11 additions & 0 deletions
11
...sform/Rector/Class_/AddInterfaceByTraitRector/Fixture/skip_transitional_interface.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 Rector\Tests\Transform\Rector\Class_\AddInterfaceByTraitRector\Fixture; | ||
|
||
use Rector\Tests\Transform\Rector\Class_\AddInterfaceByTraitRector\Source\AnotherTrait; | ||
use Rector\Tests\Transform\Rector\Class_\AddInterfaceByTraitRector\Source\MiddleInterface; | ||
|
||
final class SkipTransitionalInterface implements MiddleInterface | ||
{ | ||
use AnotherTrait; | ||
} |
9 changes: 9 additions & 0 deletions
9
rules-tests/Transform/Rector/Class_/AddInterfaceByTraitRector/Source/AnotherTrait.php
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 | ||
declare(strict_types=1); | ||
|
||
namespace Rector\Tests\Transform\Rector\Class_\AddInterfaceByTraitRector\Source; | ||
|
||
trait AnotherTrait | ||
{ | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
rules-tests/Transform/Rector/Class_/AddInterfaceByTraitRector/Source/MiddleInterface.php
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,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\Tests\Transform\Rector\Class_\AddInterfaceByTraitRector\Source; | ||
|
||
interface MiddleInterface extends TopMostInterface | ||
{ | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
rules-tests/Transform/Rector/Class_/AddInterfaceByTraitRector/Source/TopMostInterface.php
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,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\Tests\Transform\Rector\Class_\AddInterfaceByTraitRector\Source; | ||
|
||
interface TopMostInterface | ||
{ | ||
|
||
} |
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