[wp-trac] [WordPress Trac] #56876: WP_List_Table should prevent using dynamic properties as they are not allowed in PHP 8.2

WordPress Trac noreply at wordpress.org
Fri Oct 21 12:05:58 UTC 2022


#56876: WP_List_Table should prevent using dynamic properties as they are not
allowed in PHP 8.2
---------------------------+------------------------------------------
 Reporter:  antonvlasenko  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:  trunk
 Severity:  normal         |   Keywords:  needs-patch needs-unit-tests
  Focuses:                 |
---------------------------+------------------------------------------
 Developers should get a notice when trying to get or set a dynamic
 property on `WP_List_Table`.
 The current implementation of the class correctly handles some dynamic
 properties.
 But, in addition to the allowed dynamic properties, it enables the use of
 arbitrary properties.
 This behavior is incompatible with PHP 8.2 and should be fixed.

 Props to @jrf for identifying the issue 👏.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56876>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list