From bc9e791010bf8f947e5219569010f3234f1f5ca6 Mon Sep 17 00:00:00 2001 From: Ferror Date: Thu, 9 Jun 2022 17:45:51 +0200 Subject: [PATCH] [maintenance]Fix ECS --- ecs.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/ecs.php b/ecs.php index 84b8f4ac97..6396d6caec 100644 --- a/ecs.php +++ b/ecs.php @@ -1,16 +1,13 @@ import('vendor/sylius-labs/coding-standard/ecs.php'); - - $containerConfigurator->parameters()->set(Option::SKIP, [ +return static function (ECSConfig $ecsConfig): void { + $ecsConfig->import('vendor/sylius-labs/coding-standard/ecs.php'); + $ecsConfig->parameters()->set(Option::SKIP, [ VisibilityRequiredFixer::class => ['*Spec.php'], ]); - - $containerConfigurator->services()->set(BinaryOperatorSpacesFixer::class)->call('configure', [[]]); + $ecsConfig->services()->set(BinaryOperatorSpacesFixer::class)->call('configure', [[]]); };