Repository: VincentLanglet/Twig-CS-Fixer (php)

Issue:
Trailing Comma MultiLine rule breaks multiline strings
### Rule(s) related to or rule(s) missing

TrailingCommaMultiLineRule

### Expected behavior

Any twig function with a multiline string parameter should not trigger a fatal error.

```twig
{{ dump('line1
    line2') }}
```

### Actual behavior

```
KO templates/test/index.html
 ------- ------------------------------------------------------------------------------------ 
  FATAL   >>   | Unable to fix file: Too many iteration while trying to fix file.             
 ------- ------------------------------------------------------------------------------------ 
  ERROR   9    |     {{ dump('line1                                                           
          10   |     line2') }}                                                               
          >>   | Multi-line arrays, objects and parameters lists should have trailing comma.  
          11   | </body>                                                                      
 ------- ------------------------------------------------------------------------------------ 
```


Pull request description:
fix(rules): revert TrailingCommaMultiLineRule
Fixes #257 #256 

Temporary disable this rule (too buggy for now).

Patch:
diff --git a/src/Standard/TwigCsFixer.php b/src/Standard/TwigCsFixer.php
index a4cc6b3..cd96e38 100644
--- a/src/Standard/TwigCsFixer.php
+++ b/src/Standard/TwigCsFixer.php
@@ -6,7 +6,6 @@ namespace TwigCsFixer\Standard;
 
 use TwigCsFixer\Rules\Delimiter\BlockNameSpacingRule;
 use TwigCsFixer\Rules\Function\IncludeFunctionRule;
-use TwigCsFixer\Rules\Punctuation\TrailingCommaMultiLineRule;
 use TwigCsFixer\Rules\Punctuation\TrailingCommaSingleLineRule;
 use TwigCsFixer\Rules\String\HashQuoteRule;
 use TwigCsFixer\Rules\String\SingleQuoteRule;
@@ -31,7 +30,6 @@ final class TwigCsFixer implements StandardInterface
             new IncludeFunctionRule(),
             new IndentRule(),
             new SingleQuoteRule(),
-            new TrailingCommaMultiLineRule(),
             new TrailingCommaSingleLineRule(),
             new TrailingSpaceRule(),
         ];


Test patch:
diff --git a/tests/Standard/TwigCsFixerTest.php b/tests/Standard/TwigCsFixerTest.php
index 32e7f92..220c4f3 100644
--- a/tests/Standard/TwigCsFixerTest.php
+++ b/tests/Standard/TwigCsFixerTest.php
@@ -11,7 +11,6 @@ use TwigCsFixer\Rules\Function\IncludeFunctionRule;
 use TwigCsFixer\Rules\Operator\OperatorNameSpacingRule;
 use TwigCsFixer\Rules\Operator\OperatorSpacingRule;
 use TwigCsFixer\Rules\Punctuation\PunctuationSpacingRule;
-use TwigCsFixer\Rules\Punctuation\TrailingCommaMultiLineRule;
 use TwigCsFixer\Rules\Punctuation\TrailingCommaSingleLineRule;
 use TwigCsFixer\Rules\String\HashQuoteRule;
 use TwigCsFixer\Rules\String\SingleQuoteRule;
@@ -41,7 +40,6 @@ final class TwigCsFixerTest extends TestCase
             new IncludeFunctionRule(),
             new IndentRule(),
             new SingleQuoteRule(),
-            new TrailingCommaMultiLineRule(),
             new TrailingCommaSingleLineRule(),
             new TrailingSpaceRule(),
         ], $standard->getRules());