Skip to content

Commit

Permalink
bug #779 Update ECS configuration to fix the build (Zales0123)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.11 branch.

Discussion
----------

Similar to Sylius/Sylius-Standard#776 but with syntax change as well πŸ–– 

Commits
-------

d7449b482f202f4482b888b8b0ddd18b10df6fe6 Update ECS configuration to fix the build
  • Loading branch information
windragon0910 committed Jun 14, 2022
2 parents ff20681 + 732f09e commit fece888
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
use PhpCsFixer\Fixer\ClassNotation\VisibilityRequiredFixer;
use PhpCsFixer\Fixer\Operator\BinaryOperatorSpacesFixer;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Option;

return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->import('vendor/sylius-labs/coding-standard/ecs.php');
return static function (ECSConfig $config): void {
$config->import('vendor/sylius-labs/coding-standard/ecs.php');

$containerConfigurator->parameters()->set(Option::SKIP, [
$config->skip([
VisibilityRequiredFixer::class => ['*Spec.php'],
]);

$containerConfigurator->services()->set(BinaryOperatorSpacesFixer::class)->call('configure', [[]]);
$config->ruleWithConfiguration(BinaryOperatorSpacesFixer::class, []);
};

0 comments on commit fece888

Please sign in to comment.