[wp-trac] [WordPress Trac] #51553: PHP 8.0: code improvements to allow for named parameters in function calls
WordPress Trac
noreply at wordpress.org
Sat Oct 17 02:38:48 UTC 2020
#51553: PHP 8.0: code improvements to allow for named parameters in function calls
-------------------------------------------------+-------------------------
Reporter: jrf | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 5.6
Component: General | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion needs-patch php8 needs- | Focuses: coding-
dev-note | standards
-------------------------------------------------+-------------------------
Comment (by ayeshrajans):
Hi @jrf - I will be working on PHP 8 changes too, and will be happy to
help. I suppose the changes would be huge, looking at the phpcs results,
so a PR would definitely help compared to multiple patches.
Looking at random files in WP core, it probably would help to establish
some guidelines for task 2.1 (meaningful parameter names). For example,
there are parameters with name "deprecated" in it, or `$args` that are
used more or less as `$options` rather when called.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51553#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list