Skip to content

Commit

Permalink
Add a temporary workaround for the broken whitespace aware fixer auto…
Browse files Browse the repository at this point in the history
…wiring
  • Loading branch information
leofeyer committed Aug 23, 2023
1 parent 459f18c commit 4c24e5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/contao.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@
$ecsConfig->ruleWithConfiguration(\PhpCsFixer\Fixer\ListNotation\ListSyntaxFixer::class, ['syntax' => 'short']);
$ecsConfig->rule(\PhpCsFixer\Fixer\Whitespace\MethodChainingIndentationFixer::class);
$ecsConfig->rule(\PhpCsFixer\Fixer\Comment\MultilineCommentOpeningClosingFixer::class);
// TODO: Remove the next line once https://github.com/easy-coding-standard/easy-coding-standard/pull/110 has been released
$ecsConfig->rule(\PhpCsFixerCustomFixers\Fixer\MultilinePromotedPropertiesFixer::class);
$ecsConfig->ruleWithConfiguration(\PhpCsFixerCustomFixers\Fixer\MultilinePromotedPropertiesFixer::class, ['minimum_number_of_parameters' => 2]);
$ecsConfig->ruleWithConfiguration(\PhpCsFixer\Fixer\Semicolon\MultilineWhitespaceBeforeSemicolonsFixer::class, ['strategy' => 'new_line_for_chained_calls']);
$ecsConfig->ruleWithConfiguration(\PhpCsFixer\Fixer\ConstantNotation\NativeConstantInvocationFixer::class, ['fix_built_in' => false, 'include' => ['DIRECTORY_SEPARATOR', 'PHP_SAPI', 'PHP_VERSION_ID'], 'scope' => 'namespaced']);
Expand Down

0 comments on commit 4c24e5a

Please sign in to comment.