[wp-trac] [WordPress Trac] #55105: Introduce a polyfill for `array_is_list()`.

WordPress Trac noreply at wordpress.org
Mon Feb 5 15:41:14 UTC 2024


#55105: Introduce a polyfill for `array_is_list()`.
--------------------------------------+---------------------
 Reporter:  costdev                   |       Owner:  (none)
     Type:  feature request           |      Status:  closed
 Priority:  normal                    |   Milestone:  6.5
Component:  General                   |     Version:
 Severity:  minor                     |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by swissspidy):

 @jrf Will do!

 @costdev Thanks for raising this.

 Happy to add the tests for sure.

 Looking at https://3v4l.org/tgUEX/perf and https://3v4l.org/MLs3Z/perf for
 the relevant version range (PHP 7.0 to PHP 8.0), user time is identical.
 Maybe the performance inconsistencies were a thing before WP bumped its
 minimum requirement? It does look like implementing both approaches à la
 Symfony is redundant, so it makes sense to just settle on one (assuming
 the tests confirm that)

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


More information about the wp-trac mailing list