[wp-trac] [WordPress Trac] #43619: Introduce new PHP cross-version compat function `is_iterable()`

WordPress Trac noreply at wordpress.org
Fri Mar 23 14:36:57 UTC 2018


#43619: Introduce new PHP cross-version compat function `is_iterable()`
-------------------------+------------------------------
 Reporter:  jrf          |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by schlessera):

 @jrf Yes, of course, the functionality proposed here can and should
 already go in with a next minor release. I just thought your proposed
 polyfills demonstrate the growing need for a more systematic approach,
 that's why I linked.

 Using functions like the above makes the code more future-proof and less
 error-prone, so there's no reason not to add this small polyfill.

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


More information about the wp-trac mailing list