From 131ac77d63dfd0c540752fcfada4b71516bd4bd2 Mon Sep 17 00:00:00 2001 From: Kevin Kaniaburka Date: Fri, 12 May 2023 17:23:49 +0200 Subject: [PATCH] Drop MultilineWhitespaceBeforeSemicolonsFixer Drop the rule as it does not work as expected since CS Fixer 3.16 See the discussion: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6950 --- ecs.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/ecs.php b/ecs.php index da937f1..c77c581 100644 --- a/ecs.php +++ b/ecs.php @@ -109,7 +109,6 @@ use PhpCsFixer\Fixer\PhpTag\NoClosingTagFixer; use PhpCsFixer\Fixer\PhpUnit\PhpUnitDedicateAssertFixer; use PhpCsFixer\Fixer\PhpUnit\PhpUnitFqcnAnnotationFixer; -use PhpCsFixer\Fixer\Semicolon\MultilineWhitespaceBeforeSemicolonsFixer; use PhpCsFixer\Fixer\Semicolon\NoEmptyStatementFixer; use PhpCsFixer\Fixer\Semicolon\NoSinglelineWhitespaceBeforeSemicolonsFixer; use PhpCsFixer\Fixer\Semicolon\SpaceAfterSemicolonFixer; @@ -248,7 +247,6 @@ $ecsConfig->ruleWithConfiguration(ForbiddenAnnotationsSniff::class, ['forbiddenAnnotations' => ['@api', '@author', '@category', '@copyright', '@created', '@license', '@package', '@since', '@subpackage', '@version']]); $ecsConfig->ruleWithConfiguration(IncrementStyleFixer::class, ['style' => 'pre']); $ecsConfig->ruleWithConfiguration(ListSyntaxFixer::class, ['syntax' => 'short']); - $ecsConfig->ruleWithConfiguration(MultilineWhitespaceBeforeSemicolonsFixer::class, ['strategy' => 'new_line_for_chained_calls']); $ecsConfig->ruleWithConfiguration(NoExtraBlankLinesFixer::class, ['tokens' => ['break', 'case', 'continue', 'curly_brace_block', 'default', 'extra', 'parenthesis_brace_block', 'return', 'square_brace_block', 'switch', 'throw', 'use']]); $ecsConfig->ruleWithConfiguration(NoMixedEchoPrintFixer::class, ['use' => 'echo']); $ecsConfig->ruleWithConfiguration(NoSuperfluousPhpdocTagsFixer::class, ['allow_mixed' => true]);