[wp-trac] [WordPress Trac] #60609: Coding Standards: Convert all instances of array() => [] in PHP files
WordPress Trac
noreply at wordpress.org
Thu Feb 22 18:09:25 UTC 2024
#60609: Coding Standards: Convert all instances of array() => [] in PHP files
------------------------------+-------------------------------
Reporter: itschristiandale | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution: wontfix
Keywords: has-patch | Focuses: coding-standards
------------------------------+-------------------------------
Changes (by swissspidy):
* status: new => closed
* version: trunk =>
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
Thanks for taking the time to open this ticket and PR!
Please note that the WordPress PHP coding standards explicitly disallow
short array syntax in favor of the more readable `array()` syntax.
See https://make.wordpress.org/core/2019/07/12/php-coding-standards-
changes/ and https://developer.wordpress.org/coding-standards/wordpress-
coding-standards/php/#declaring-arrays
As such, I am afraid your change is not something we will implement.
If you believe there is now information that warrants a new proposal to
change the coding standards for array syntax, I recommend reading up on
those two links and especially the
[https://make.wordpress.org/core/2019/03/26/coding-standards-updates-for-
php-5-6/ first proposal for that].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60609#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list