Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug PHP-CS-Fixer#813 MultilineArrayTrailingCommaFixer - do not move a…
…rray end to new line (keradus) This PR was merged into the 1.4-dev branch. Discussion ---------- MultilineArrayTrailingCommaFixer - do not move array end to new line Currently ```php <?php $var = array( "string", /* foo */); ``` is changed: ```diff <?php $var = array( - "string" - /* foo */); + "string", + /* foo */ +); ``` First, this fixer is not supposed to move end of array, and next, the end of array is wrongly placed (no indent) The fixer should only add a comma, like: ```diff <?php $var = array( - "string" + "string", /* foo */); ``` Commits ------- 31c3e76 MultilineArrayTrailingCommaFixer - do not move array end to new line
- Loading branch information