PHP supports trailing commas in many different parts of the language now.
There could be different options for it to support this for function parameters, function arguments, arrays, etc. I only want trailing commas in multi-line code, such as when calling a function and placing each argument on a separate line.
One advantage of standardizing on this code style is, when you add an extra argument to a multi-line function call for example, this allows the git commit and diffs to only have/show 1 line changed instead of 2.
PHP supports trailing commas in many different parts of the language now.
There could be different options for it to support this for function parameters, function arguments, arrays, etc. I only want trailing commas in multi-line code, such as when calling a function and placing each argument on a separate line.
One advantage of standardizing on this code style is, when you add an extra argument to a multi-line function call for example, this allows the git commit and diffs to only have/show 1 line changed instead of 2.