Skip to content

Commit

Permalink
Allow trailing comma in multi line function calls
Browse files Browse the repository at this point in the history
Fixes #2621
  • Loading branch information
martinssipenko authored Sep 30, 2019
1 parent 0afebf1 commit 8428fed
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ public function processClose(File $phpcsFile, $stackPtr)
$ignoreTokens[] = T_WHITESPACE;
$ignoreTokens[] = T_COMMENT;
$ignoreTokens[] = T_SEMICOLON;
$ignoreTokens[] = T_COMMA;
$nextContent = $phpcsFile->findNext($ignoreTokens, ($closeBrace + 1), null, true);
if ($tokens[$nextContent]['content'] !== $phpcsFile->eolChar
&& $tokens[$nextContent]['line'] === $tokens[$closeBrace]['line']
Expand Down

0 comments on commit 8428fed

Please sign in to comment.