diff --git a/ecs.php b/ecs.php index 4d6c5d59..f52c4f78 100644 --- a/ecs.php +++ b/ecs.php @@ -7,7 +7,6 @@ use PhpCsFixer\Fixer\Operator\NotOperatorWithSpaceFixer; use PhpCsFixer\Fixer\Operator\NotOperatorWithSuccessorSpaceFixer; use Symplify\EasyCodingStandard\Config\ECSConfig; -use Symplify\EasyCodingStandard\ValueObject\Option; use Symplify\EasyCodingStandard\ValueObject\Set\SetList; return static function (ECSConfig $ecsConfig): void { @@ -34,8 +33,8 @@ AssignmentInConditionSniff::class ]); - $parameters = $ecsConfig->parameters(); - - $parameters->set(Option::CACHE_DIRECTORY, __DIR__ . '/var/cache/cs_fixer'); - $parameters->set(Option::PATHS, [__DIR__ . '/src', __DIR__ . '/tests']); + $ecsConfig->paths([ + __DIR__ . '/src', + __DIR__ . '/tests' + ]); };