PHP 8.0: new `PHPCompatibility.FunctionDeclarations.NewTrailingComma` sniff by jrfnl · Pull Request #1164 · PHPCompatibility/PHPCompatibility
…a` sniff PHP 8.0 will allow trailing comma's in parameter lists for function declarations. > Allow a single optional trailing comma in parameter lists. This includes parameter lists for functions, methods and closures. Refs: * https://wiki.php.net/rfc/trailing_comma_in_parameter_list * php/php-src@f545ee2 This new sniff detects those. I've tested and confirmed that arrow functions are included in this change. Includes unit tests.
jrfnl
mentioned this pull request
40 tasks
wimg approved these changes Jul 18, 2020
wimg
deleted the
php-8.0/new-newtrailingcomma-sniff
branch
jrfnl
mentioned this pull request
jrfnl
mentioned this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters