[wp-trac] [WordPress Trac] #59161: Composer: update to WordPressCS 3.0.0

WordPress Trac noreply at wordpress.org
Tue Sep 5 12:23:01 UTC 2023


#59161: Composer: update to WordPressCS 3.0.0
------------------------------+-------------------------------
 Reporter:  jrf               |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  accepted
 Priority:  normal            |   Milestone:  6.4
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:  coding-standards
------------------------------+-------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"56514" 56514]:
 {{{
 #!CommitTicketReference repository="" revision="56514"
 Code Modernization: Rename parameters that use reserved keywords in `wp-
 includes/functions.php`.

 While using reserved PHP keywords as parameter name labels is allowed, in
 the context of function calls using named parameters in PHP 8.0+, this
 will easily lead to confusion. To avoid that, it is recommended not to use
 reserved keywords as function parameter names.

 This commit renames the `$class` parameter to `$class_name` in
 `_deprecated_class()`.

 Follow-up to [54929], [56467].

 Props jrf.
 See #59161.
 }}}

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


More information about the wp-trac mailing list