[wp-trac] [WordPress Trac] #52728: Widgets: Uncaught TypeError in PHP 8 when using objects for settings

WordPress Trac noreply at wordpress.org
Fri Apr 23 15:48:57 UTC 2021


#52728: Widgets: Uncaught TypeError in PHP 8 when using objects for settings
---------------------------------------------+---------------------
 Reporter:  dlh                              |       Owner:  (none)
     Type:  defect (bug)                     |      Status:  new
 Priority:  normal                           |   Milestone:  5.8
Component:  Widgets                          |     Version:  4.3
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch php8 needs-unit-tests  |     Focuses:
---------------------------------------------+---------------------

Comment (by hellofromTonya):

 >... I wonder if this isn't actually a bug/missing feature in PHP itself.

 Looking bugs.php.net, there is already a bug report that
 `array_key_exists` does not support `ArrayAccess`:
 https://bugs.php.net/bug.php?id=80162.


 Note:
 `ArrayIterator` implements `ArrayAccess`
 https://www.php.net/manual/en/class.arrayiterator.php.

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


More information about the wp-trac mailing list