[wp-trac] [WordPress Trac] #63853: Add PHP 8.5 compat array functions: `array_first` and `array_last`

WordPress Trac noreply at wordpress.org
Tue Aug 26 21:30:05 UTC 2025


#63853: Add PHP 8.5 compat array functions: `array_first` and `array_last`
-------------------------------------------------+-------------------------
 Reporter:  TobiasBg                             |       Owner:  jorbin
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.9
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  php85 has-patch has-unit-tests       |     Focuses:  php-
  commit                                         |  compatibility
-------------------------------------------------+-------------------------
Changes (by jorbin):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60672" 60672]:
 {{{
 #!CommitTicketReference repository="" revision="60672"
 General: Add polyfills for new PHP 8.5 array functions: `array_first` and
 `array_last`.

 This power couple of function is coming in PHP 8.5: array_first and
 array_last.

 For more information on these functions, check out the PHP RFC at
 https://wiki.php.net/rfc/array_first_last.

 Props tusharbharti, jorbin, peterwilsoncc, mukesh27, johnbillion.
 Fixes #63853. See #63061.
 }}}

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


More information about the wp-trac mailing list