Re: [RFC] Allow trailing comma in parameter lists
| From: | Christoph M. Becker | Date: | Fri, 27 Mar 2020 15:28:20 +0000 |
| Subject: | Re: [RFC] Allow trailing comma in parameter lists | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-109374@lists.php.net to get a copy of this message | ||
On 27.03.2020 at 14:58, tyson andre wrote:
> I'd just like to add that
> https://wiki.php.net/rfc/trailing_comma_in_parameter_list seems
> useful,
> especially now that PSR-12 is approved and
> https://www.php-fig.org/psr/psr-12/#45-method-and-function-arguments
> recommends that
> "When the argument list is split across multiple lines, the closing parenthesis and
> opening brace MUST be placed together on their own line with one space between them."
> (Previously, I don't think there was any attempt at standardizing a recommendation of
> where the closing parenthesis should go)
The text is identical for PSR-2[1], and even PEAR CS[2] put it that way.
So, yes, I'm +1 here.
[1] <https://www.php-fig.org/psr/psr-2/#44-method-arguments>
[2] <https://pear.php.net/manual/en/standards.funcdef.php>
--
Christoph M. Becker