From 4c3a8a75bbefa0b08da10bb22dee3dac53033a41 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 26 Aug 2021 20:53:36 +0700 Subject: [PATCH] [ECS] Import Control Structure SetList after Option Skip (#774) --- ecs.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ecs.php b/ecs.php index 5f51624dbba..f42b0050781 100644 --- a/ecs.php +++ b/ecs.php @@ -2,7 +2,6 @@ declare(strict_types=1); -use PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff; use PhpCsFixer\Fixer\Operator\UnaryOperatorSpacesFixer; use PhpCsFixer\Fixer\Phpdoc\GeneralPhpdocAnnotationRemoveFixer; use PhpCsFixer\Fixer\Phpdoc\NoSuperfluousPhpdocTagsFixer; @@ -96,9 +95,8 @@ __DIR__ . '/packages-tests/BetterPhpDocParser/PhpDocParser/StaticDoctrineAnnotationParser/StaticDoctrineAnnotationParserTest.php', '*TypeResolverTest.php', ], - - AssignmentInConditionSniff::class . '.FoundInWhileCondition' => null, ]); + $containerConfigurator->import(SetList::CONTROL_STRUCTURES); $parameters->set(Option::LINE_ENDING, "\n"); };