Editor: Aubrey Portwood
Sponsor: Will S.
Interested: Corey, Ben, Greg
The Proposal
Enforce shorthand array format, e.g. [] vs array() on arrays.
Reasoning
WordPress is now enforcing array() in it's own WP Coding Standards, we'd like to use shorthand and also enforce it as it is something the company already does.
Pros
Easier to type
Easier to distinguish
Cons
May be harder for new PHP users
May break older projects as we have used array() before
Changelog
We all agreed to go with short format
Chat with team on BEE and everyone agreed
Chat with FEE team and 12 of them agreed, two didn't care
Working Group Information
Editor: Aubrey Portwood Sponsor: Will S. Interested: Corey, Ben, Greg
The Proposal
Enforce shorthand array format, e.g.
[]
vsarray()
on arrays.Reasoning
WordPress is now enforcing
array()
in it's own WP Coding Standards, we'd like to use shorthand and also enforce it as it is something the company already does.Pros
Cons
Changelog
Implementations
Code Changes
https://github.com/WebDevStudios/php-coding-standards/pull/7