[wp-trac] [WordPress Trac] #51553: PHP 8.0: code improvements to allow for named parameters in function calls

WordPress Trac noreply at wordpress.org
Mon Jun 21 21:31:08 UTC 2021


#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.9
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  php8 has-patch dev-feedback needs-   |     Focuses:  coding-
  docs needs-codex early                         |  standards
-------------------------------------------------+-------------------------
Changes (by azaozz):

 * keywords:  php8 has-patch 2nd-opinion dev-feedback needs-docs needs-codex
     => php8 has-patch dev-feedback needs-docs needs-codex early
 * milestone:  Future Release => 5.9


Comment:

 Replying to [comment:22 jrf]:
 > the discrepancy between the parameter names in parent vs child classes
 *must* be solved for PHP 8 compatibility

 Yes, of course.

 > The choice for the pattern of ''"generic" parameter name in declaration,
 renamed to the original, more specific and more descriptive name near the
 top of the function''...

 Yeah, thinking this is probably the best that can be done under the
 circumstances. Just thinking it would be good to add a short comment
 explaining what's going on.

 Too late to do thin in 5.8. Lets do in 5.9-early.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51553#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list