•  
      request #24188 Force multiline arrays and method/function declarations to have a trailing comma in the PHP codebase
    Infos
    #24188
    Thomas Gerbet (tgerbet)
    2021-12-01 10:51
    2021-11-30 17:36
    25728
    Details
    Force multiline arrays and method/function declarations to have a trailing comma in the PHP codebase

    Recent versions of PHP allow for both cases so we have both cases in the codebase.

    We should settle on one and enforce it.

    I propose to go with the trailing commas because it generates cleaner diff and it is also what Prettier does with the arrays so it is more consistent with the frontend codebase.

    Other
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2021-12-01
    Attachments
    Empty
    References

    Follow-ups