-
-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to rename method if in interface (#2362)
* add test fixture * allow rename method in interface
- Loading branch information
1 parent
5d0138d
commit 66dbb1e
Showing
7 changed files
with
107 additions
and
44 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
25 changes: 25 additions & 0 deletions
25
.../Rector/MethodCall/RenameMethodRector/Fixture/when_interface_and_parent_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,25 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Renaming\Rector\MethodCall\RenameMethodRector\Fixture; | ||
|
||
use Rector\Tests\Renaming\Rector\MethodCall\RenameMethodRector\Source\DifferentInterface; | ||
|
||
interface WhenInterfaceAndParentInterface extends DifferentInterface | ||
{ | ||
public function renameMe(): int; | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\Renaming\Rector\MethodCall\RenameMethodRector\Fixture; | ||
|
||
use Rector\Tests\Renaming\Rector\MethodCall\RenameMethodRector\Source\DifferentInterface; | ||
|
||
interface WhenInterfaceAndParentInterface extends DifferentInterface | ||
{ | ||
public function toNewVersion(): int; | ||
} | ||
|
||
?> |
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
8 changes: 8 additions & 0 deletions
8
rules-tests/Renaming/Rector/MethodCall/RenameMethodRector/Source/DifferentInterface.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,8 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Renaming\Rector\MethodCall\RenameMethodRector\Source; | ||
|
||
interface DifferentInterface | ||
{ | ||
public function renameMe(); | ||
} |
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