wordpress-develop/tests
Tonya Mork b21d748b41 General: Introduce polyfills for array_key_first() and array_key_last() added in PHP 7.3.0.
PHP 7.3.0 introduced two new functions: `array_key_first()` and `array_key_last()`. These two functions return the first and last key of each array respectively, without affecting the internal state of the array.

The polyfills make these two functions available for use in Core on PHP versions less than 7.3.0.

Ref:
* PHP RFC https://wiki.php.net/rfc/array_key_first_last
* PHP manual `array_key_first()` https://www.php.net/manual/en/function.array-key-first.php
* PHP manual `array_key_last()` https://www.php.net/manual/en/function.array-key-last.php

Props desrosj, pbearne, costdev, hellofromTonya, ayeshrajans, manzoorwanijk, audrasjb, sergeybiryukov.
Fixes #45055.

git-svn-id: https://develop.svn.wordpress.org/trunk@52038 602fd350-edb4-49c9-b593-d223f7449a82
2021-11-08 13:50:35 +00:00
..
e2e Build/Test Tools: Add end-to-end (e2e) tests for edit posts page. 2021-11-02 21:25:53 +00:00
gutenberg Block Editor: Update the Gutenberg branch used to launch Gutenberg e2e tests. 2021-06-01 09:21:36 +00:00
phpunit General: Introduce polyfills for array_key_first() and array_key_last() added in PHP 7.3.0. 2021-11-08 13:50:35 +00:00
qunit Media: Remove security messaging in media upload failures. 2021-11-07 23:28:48 +00:00
visual-regression Build/Test Tools: Introduce local visual regression testing. 2021-11-02 21:03:10 +00:00