[PSR-12] Arrow Functions

96 views
Skip to first unread message

Joseph Levine

unread,
May 6, 2019, 10:54:38 AM5/6/19
to PHP Framework Interoperability Group
Arrow functions are going to be part of PHP 7.4, and I think it's a good idea to add some guidance now.

Is it too late since PSR-12 is in review?

How can I help?

Alexander Makarov

unread,
May 9, 2019, 4:00:35 PM5/9/19
to PHP Framework Interoperability Group
What rules would you like to propose for arrow functions?

Alessandro Lai

unread,
May 10, 2019, 5:37:36 AM5/10/19
to PHP Framework Interoperability Group
We came up with a possible "soft" solution for this issue: we could add to the meta doc that short functions should follow operator + closure syntax requirements. Do you think this is feasible and without edge cases?

Joseph Levine

unread,
May 10, 2019, 10:49:51 AM5/10/19
to PHP Framework Interoperability Group
I like this solution. I had imagined needing to say more, but that seems to provide enough guidance.
Reply all
Reply to author
Forward
0 new messages