Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add failing fixture for flipped position
- Loading branch information
1 parent
637c07b
commit 932e3af
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
...ethod/AddParamBasedOnParentClassMethodRector/Fixture/implements_interface_flipped.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,41 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php80\Rector\ClassMethod\AddParamBasedOnParentClassMethodRector\Fixture; | ||
|
||
class ImplementsInterfaceFlipped implements InterfaceWithParamFlipped { | ||
public function execute() | ||
{ | ||
} | ||
} | ||
|
||
/** | ||
* Both interface and class on same file on purpose to ensure locate | ||
* parent interface bug | ||
*/ | ||
interface InterfaceWithParamFlipped | ||
{ | ||
public function execute($foo); | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\Php80\Rector\ClassMethod\AddParamBasedOnParentClassMethodRector\Fixture; | ||
|
||
class ImplementsInterfaceFlipped implements InterfaceWithParamFlipped { | ||
public function execute($foo) | ||
{ | ||
} | ||
} | ||
|
||
/** | ||
* Both interface and class on same file on purpose to ensure locate | ||
* parent interface bug | ||
*/ | ||
interface InterfaceWithParamFlipped | ||
{ | ||
public function execute($foo); | ||
} | ||
|
||
?> |