You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of PHP 7.3, trailing commas are allowed after the last parameter in a function call + in the language constructs isset() and unset().
Unit tests for this should be added to the existing sniffs which examine (and fix) function calls and the sniffs will need to be reviewed to see if they handle this correctly and if not, adjusted.
The PHPCSUtils PassedParameters class handles this correctly, but it would still be good to add some tests in various sniffs with function calls with trailing commas.
As of PHP 7.3, trailing commas are allowed after the last parameter in a function call + in the language constructs
isset()
andunset()
.Unit tests for this should be added to the existing sniffs which examine (and fix) function calls and the sniffs will need to be reviewed to see if they handle this correctly and if not, adjusted.
Ref: https://wiki.php.net/rfc/trailing-comma-function-calls
N.B.: A sister-issue has been opened upstream for the same in upstream sniffs: squizlabs/PHP_CodeSniffer#2030
The text was updated successfully, but these errors were encountered: