I couldn't find anything in the various PSR, but it seems acceptable to add trailing commas to arrays. Thoughts about making this the default?
Found this: https://framework.zend.com/manual/2.4/en/ref/coding.standard.html#arrays
I could imagine that having trailing commas in multiline arrays, but no trailing comma in one-liners, would work well?
Ah yes, I was assuming multiline arrays when asking for this. Basically the same as in JavaScript if you ask for comma=es5|all.
Most helpful comment
Found this: https://framework.zend.com/manual/2.4/en/ref/coding.standard.html#arrays
I could imagine that having trailing commas in multiline arrays, but no trailing comma in one-liners, would work well?