[wp-trac] [WordPress Trac] #58897: Fix WP_User_Query magic methods for PHP 8.2 dynamic property

WordPress Trac noreply at wordpress.org
Tue Jul 25 14:06:01 UTC 2023


#58897: Fix WP_User_Query magic methods for PHP 8.2 dynamic property
----------------------------------------------+----------------------------
 Reporter:  antonvlasenko                     |       Owner:
                                              |  hellofromTonya
     Type:  defect (bug)                      |      Status:  assigned
 Priority:  normal                            |   Milestone:  6.4
Component:  Users                             |     Version:  4.0
 Severity:  normal                            |  Resolution:
 Keywords:  needs-unit-tests php82 has-patch  |     Focuses:
----------------------------------------------+----------------------------

Comment (by rajinsharwar):

 Tried to follow with Option 1; added a notice or _doing_it_wrong() to each
 magic method, added the return null in __get() when attempting to get a
 dynamic property that is not in the compat_fields.

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


More information about the wp-trac mailing list