mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 16:13:50 +00:00
apply rector rules on list interfaces
This commit is contained in:
@@ -15,6 +15,7 @@ use Chill\MainBundle\Export\AggregatorInterface;
|
||||
use Chill\MainBundle\Export\DirectExportInterface;
|
||||
use Chill\MainBundle\Export\ExportInterface;
|
||||
use Chill\MainBundle\Export\FilterInterface;
|
||||
use Chill\MainBundle\Export\ListInterface;
|
||||
use PhpParser\Node;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\Symfony\NodeAnalyzer\ClassAnalyzer;
|
||||
@@ -51,6 +52,7 @@ class ChillBundleAddFormDefaultDataOnExportFilterAggregatorRector extends Abstra
|
||||
&& !$this->classAnalyzer->hasImplements($node, AggregatorInterface::class)
|
||||
&& !$this->classAnalyzer->hasImplements($node, ExportInterface::class)
|
||||
&& !$this->classAnalyzer->hasImplements($node, DirectExportInterface::class)
|
||||
&& !$this->classAnalyzer->hasImplements($node, ListInterface::class)
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user