[wp-trac] [WordPress Trac] #60190: Drop PHP 4 support for arrays with 1 object element

WordPress Trac noreply at wordpress.org
Wed Mar 27 20:41:29 UTC 2024


#60190: Drop PHP 4 support for arrays with 1 object element
--------------------------------------+-----------------------------
 Reporter:  kkmuffme                  |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Future Release
Component:  Plugins                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------
Changes (by kkmuffme):

 * keywords:  has-patch needs-unit-tests => has-patch has-unit-tests


Comment:

 >Right now this patch removes a unit test, but the test actually still
 passes with the proposed patch, so why remove it?

 Tested it, not true. The test fails. Removed it again.

 >A test to demonstrate this would be great, just for completeness sake

 Done. This test would result in a fatal error without the changes of this
 PR (tested on WP 6.5)
 (had some confusion initially, since I wasn't familiar how the args are
 tested/returned in WP phpunit tests)

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


More information about the wp-trac mailing list