diff --git a/ecs.php b/ecs.php index 56f5fea..b904391 100644 --- a/ecs.php +++ b/ecs.php @@ -5,9 +5,12 @@ declare(strict_types=1); use Symplify\EasyCodingStandard\Config\ECSConfig; -use Symplify\EasyCodingStandard\ValueObject\Set\SetList; -return static function (ECSConfig $ecsConfig): void { - $ecsConfig->paths([__DIR__.'/src']); - $ecsConfig->sets([SetList::CLEAN_CODE, SetList::PSR_12]); -}; +return ECSConfig::configure() + ->withPaths([ + __DIR__ . '/src' + ]) + ->withPreparedSets( + cleanCode: true, + psr12: true + );