Skip to content

Commit

Permalink
ecs: remove legacy method-call (SW 6.4.x)
Browse files Browse the repository at this point in the history
  • Loading branch information
rommelfreddy committed Sep 13, 2023
1 parent ddad054 commit 6f47418
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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'
]);
};

0 comments on commit 6f47418

Please sign in to comment.