WordPress/wp-includes/rest-api
Gary Pendergast a571a7d621 Code Modernisation: Fix known instances of array access on data types that can't be accessed as arrays.
PHP 7.4 addes a warning when trying access a null/bool/int/float/resource (everything but array, string and object) as if it were an array.

This change fixes all of these warnings visible in unit tests.

Props jrf.
See #47704.



Built from https://develop.svn.wordpress.org/trunk@45639


git-svn-id: http://core.svn.wordpress.org/trunk@45450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-07-15 06:25:57 +00:00
..
endpoints REST API: Allow rest_get_avatar_urls() to accept full user, post, or comment objects, rather than just an email address, to provide better flexibility for alternative avatar data. 2019-07-14 14:35:56 +00:00
fields REST API: Slash existing meta values when comparing with incoming meta upates. 2018-12-13 16:30:37 +00:00
search Docs: Add missing @see tag to WP_REST_Post_Search_Handler DocBlock. 2019-05-14 15:00:07 +00:00
class-wp-rest-request.php Code Modernisation: Fix known instances of array access on data types that can't be accessed as arrays. 2019-07-15 06:25:57 +00:00
class-wp-rest-response.php
class-wp-rest-server.php Coding Standards: Fix instances of WordPress.PHP.NoSilencedErrors.Discouraged. 2019-07-09 05:45:58 +00:00