Skip to content

Commit

Permalink
add failing fixture for flipped position
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jul 14, 2022
1 parent 637c07b commit 932e3af
Showing 1 changed file with 41 additions and 0 deletions.
@@ -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);
}

?>

0 comments on commit 932e3af

Please sign in to comment.