diff --git a/ecs.php b/ecs.php index 4e7e999..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 + );