diff --git a/src/lib/Rule/Internal/RemoveInterfaceWithMethods.php b/src/lib/Rule/Internal/RemoveInterfaceWithMethods.php index 4413c01..5bb0ef0 100644 --- a/src/lib/Rule/Internal/RemoveInterfaceWithMethods.php +++ b/src/lib/Rule/Internal/RemoveInterfaceWithMethods.php @@ -9,7 +9,6 @@ namespace Ibexa\Rector\Rule\Internal; use PhpParser\Node; -use PhpParser\Node\Stmt\Class_; use PhpParser\Node\Stmt\ClassMethod; use Rector\Contract\Rector\ConfigurableRectorInterface; use Rector\Rector\AbstractRector; @@ -97,7 +96,6 @@ public function refactor(Node $node): ?int /** * @param class-string[] $configuration - * @return void */ public function configure(array $configuration): void { diff --git a/tests/lib/Rule/Internal/RemoveInterfaceWithMethods/Fixture/SomeInterface.php b/tests/lib/Rule/Internal/RemoveInterfaceWithMethods/Fixture/SomeInterface.php new file mode 100644 index 0000000..fbbfaa1 --- /dev/null +++ b/tests/lib/Rule/Internal/RemoveInterfaceWithMethods/Fixture/SomeInterface.php @@ -0,0 +1,17 @@ +ruleWithConfiguration( RemoveInterfaceWithMethods::class, - ['Ibexa\Bundle\Core\Command\BackwardCompatibleCommand'] + [SomeInterface::class] ); };