diff --git a/ecs.php b/ecs.php index 0fa454b8..59641089 100644 --- a/ecs.php +++ b/ecs.php @@ -3,10 +3,8 @@ declare(strict_types=1); use Symplify\EasyCodingStandard\Config\ECSConfig; -use Symplify\EasyCodingStandard\ValueObject\Set\SetList; -return static function (ECSConfig $ecsConfig): void { - $ecsConfig->paths([__DIR__ . '/ecs.php', __DIR__ . '/rector.php', __DIR__ . '/src', __DIR__ . '/tests']); - - $ecsConfig->sets([SetList::COMMON, SetList::PSR_12, SetList::SYMPLIFY]); -}; +return ECSConfig::configure() + ->withPaths([__DIR__ . '/src', __DIR__ . '/tests']) + ->withRootFiles() + ->withPreparedSets(psr12: true, common: true, symplify: true); diff --git a/scoper.php b/scoper.php index c5e26af7..0ca9ea54 100644 --- a/scoper.php +++ b/scoper.php @@ -34,7 +34,6 @@ ), ); - // see https://github.com/humbug/php-scoper return [ 'prefix' => 'VendorPatches' . $timestamp,