[wp-trac] [WordPress Trac] #62558: Add PHP 8.4 compat array functions: `array_find`, `array_find_key`, `array_any` and `array_all`

WordPress Trac noreply at wordpress.org
Sun Nov 24 14:12:54 UTC 2024


#62558: Add PHP 8.4 compat array functions: `array_find`, `array_find_key`,
`array_any` and `array_all`
--------------------------+-----------------------------
 Reporter:  Soean         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Add polyfill functions for PHP 8.4 array utilities

 - Added `array_find` function to search an array for the first element
 that passes a given callback.
 - Added `array_find_key` function to search an array for the first key
 that passes a given callback.
 - Added `array_any` function to check if any element of an array passes a
 given callback.
 - Added `array_all` function to check if all elements of an array pass a
 given callback.

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


More information about the wp-trac mailing list