Aggregators: Update test methods to static and return array

Modified aggregator test methods throughout the Chill project to be now static methods. Also updated yield construction to array returns for more standardised code.
This commit is contained in:
2024-02-16 21:33:57 +01:00
parent 94725bc92f
commit b9ae878791
71 changed files with 162 additions and 214 deletions

View File

@@ -51,8 +51,10 @@ return static function (RectorConfig $rectorConfig): void {
// $rectorConfig->rule(\Rector\Symfony\Configs\Rector\ClassMethod\AddRouteAnnotationRector::class);
// chill rules
//$rectorConfig->rule(\Chill\Utils\Rector\Rector\ChillBundleAddFormDefaultDataOnExportFilterAggregatorRector::class);
$rectorConfig->rule(\Chill\Utils\Rector\Rector\ChillBundleMakeDataProviderStaticForAbstractFilterTestRector::class);
$rectorConfig->rules([
\Chill\Utils\Rector\Rector\ChillBundleMakeDataProviderStaticForAbstractFilterTestRector::class,
\Chill\Utils\Rector\Rector\ChillBundleMakeDataProviderStaticForAbstractAggregatorTestRector::class,
]);
// skip some path...
$rectorConfig->skip([