[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
Mon Nov 25 03:37:52 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:  feature request                      |      Status:  new
 Priority:  normal                               |   Milestone:  6.8
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch php84 add-to-field-guide   |     Focuses:  php-
  changes-requested                              |  compatibility
-------------------------------------------------+-------------------------

Comment (by ayeshrajans):

 Do we have a guideline on which functions we polyfill, and which we don't?

 PHP 8.4 has more new functions, and and the likelihood of functions like
 `mb_*trim` functions being useful enough to polyfill is as good as the new
 `array_*` functions.

 I'm not objecting this ticket in particular, just wanted to put my two
 cents forward that we probably should follow a guideline (of which I don't
 know if exists) so we can maintain the polyfills properly.

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


More information about the wp-trac mailing list