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

WordPress Trac noreply at wordpress.org
Wed Nov 11 18:49:56 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 php8 needs-dev-note      |     Focuses:  coding-
  has-patch                                      |  standards
-------------------------------------------------+-------------------------

Comment (by desrosj):

 Sorry it took a while to weigh in on this one. Looking at the 3 tasks in
 this ticket, the discussion over on #50531 which is related, and the
 amount of time left to tackle this quickly dissipating, I don't think that
 tasks 1 and 2 are realistic for 5.6.

 I think that the audit required to ensure item 3 will not cause
 compatibility issues should move forward prior to 5.6.

 I am drafting the dev note about PHP 8 and WordPress and will be
 explicitly recommending against using named parameters when utilizing
 WordPress Core functions and classes until tasks 1 and 2 can be completed.
 Since named parameters affect `call_user_func_array()`, a callout about
 that can be included.

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


More information about the wp-trac mailing list