Removes interfaces usage from class.
-class SomeClass implements SomeInterface
+class SomeClass
{
}
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\Removing\Rector\Class_\RemoveInterfacesRector;
return RectorConfig::configure()
->withConfiguredRule(RemoveInterfacesRector::class, [
'SomeInterface',
]);