Skip to content

Commit

Permalink
Replace the deprecated EscapeImplicitBackslashesFixer
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Mar 8, 2024
1 parent 3b95cce commit 43ef31d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/contao.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
use PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer;
use PhpCsFixer\Fixer\Strict\StrictComparisonFixer;
use PhpCsFixer\Fixer\Strict\StrictParamFixer;
use PhpCsFixer\Fixer\StringNotation\EscapeImplicitBackslashesFixer;
use PhpCsFixer\Fixer\StringNotation\HeredocToNowdocFixer;
use PhpCsFixer\Fixer\StringNotation\StringImplicitBackslashesFixer;
use PhpCsFixer\Fixer\Whitespace\ArrayIndentationFixer;
use PhpCsFixer\Fixer\Whitespace\BlankLineBeforeStatementFixer;
use PhpCsFixer\Fixer\Whitespace\HeredocIndentationFixer;
Expand Down Expand Up @@ -119,7 +119,6 @@
DeclareStrictTypesFixer::class,
DisallowArrayTypeHintSyntaxSniff::class,
DisallowDirectMagicInvokeCallSniff::class,
EscapeImplicitBackslashesFixer::class,
ExpectsWithCallbackFixer::class,
FunctionCallWithMultilineArrayFixer::class,
GitMergeConflictSniff::class,
Expand Down Expand Up @@ -191,6 +190,7 @@
->withConfiguredRule(PhpUnitTestCaseStaticMethodCallsFixer::class, ['call_type' => 'this'])
->withConfiguredRule(RandomApiMigrationFixer::class, ['replacements' => ['mt_rand' => 'random_int', 'rand' => 'random_int']])
->withConfiguredRule(ReferenceUsedNamesOnlySniff::class, ['searchAnnotations' => true, 'allowFullyQualifiedNameForCollidingClasses' => true, 'allowFullyQualifiedGlobalClasses' => true, 'allowFullyQualifiedGlobalFunctions' => true, 'allowFullyQualifiedGlobalConstants' => true, 'allowPartialUses' => false])
->withConfiguredRule(StringImplicitBackslashesFixer::class, ['single_quoted' => 'ignore', 'double_quoted' => 'escape', 'heredoc' => 'escape'])
->withConfiguredRule(SuperfluousWhitespaceSniff::class, ['ignoreBlankLines' => false])
->withConfiguredRule(TrailingCommaInMultilineFixer::class, ['elements' => ['arrays', 'arguments', 'match', 'parameters'], 'after_heredoc' => true])
->withConfiguredRule(TraitUseSpacingSniff::class, ['linesCountAfterLastUse' => 1, 'linesCountAfterLastUseWhenLastInClass' => 0, 'linesCountBeforeFirstUse' => 0, 'linesCountBetweenUses' => 0])
Expand Down

0 comments on commit 43ef31d

Please sign in to comment.