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

WordPress Trac noreply at wordpress.org
Fri Oct 16 23:08:40 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 jrf):

 @johnbillion So glad you asked ;-)

 I've just written & merged a sniff which will detect the issues for point
 2 in Task 2: https://github.com/PHPCSStandards/PHPCSExtra/pull/80

 Output of an initial run can be found here:
 https://gist.github.com/jrfnl/a42f06ec032b0d7911cba32a72ea99ff

 For Task 1, I'm working through the list from Exakat:
 https://www.exakat.io/reports/wordpress/data/issues.html#analyzer=functions_mismatchparametername

 Shall I push a branch online with what I've got so far ? Happy to
 collaborate on this for a joined PR.

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


More information about the wp-trac mailing list