Skip to content

Commit

Permalink
Merge branch '1.11'
Browse files Browse the repository at this point in the history
* 1.11:
  Update ECS configuration to fix the build
  • Loading branch information
Zales0123 committed Jun 14, 2022
2 parents f17e770 + 9d5942c commit c04d8c0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ecs.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<?php

use PhpCsFixer\Fixer\ClassNotation\VisibilityRequiredFixer;
use PhpCsFixer\Fixer\Operator\BinaryOperatorSpacesFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Option;

return static function (ECSConfig $ecsConfig): void {
$ecsConfig->import('vendor/sylius-labs/coding-standard/ecs.php');
$ecsConfig->parameters()->set(Option::SKIP, [
return static function (ECSConfig $config): void {
$config->import('vendor/sylius-labs/coding-standard/ecs.php');

$config->skip([
VisibilityRequiredFixer::class => ['*Spec.php'],
]);
$ecsConfig->services()->set(BinaryOperatorSpacesFixer::class)->call('configure', [[]]);

$config->ruleWithConfiguration(BinaryOperatorSpacesFixer::class, []);
};

0 comments on commit c04d8c0

Please sign in to comment.