[wp-trac] [WordPress Trac] #2784: Make all foreach() loops cast to array
WordPress Trac
noreply at wordpress.org
Sat Feb 10 11:19:56 UTC 2024
#2784: Make all foreach() loops cast to array
-------------------------------------------------+-------------------------
Reporter: markjaquith | Owner:
| jacobsantos
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 2.7
Component: Optimization | Version: 2.1
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing dev- | Focuses:
feedback |
-------------------------------------------------+-------------------------
Comment (by sandrakwf04cw):
Could you explain how casting the input of foreach() loops to an array
helps mitigate potential errors?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/2784#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list