wordpress-develop/tests/phpunit/tests/query
Gary Pendergast 2da7f9f524 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.




git-svn-id: https://develop.svn.wordpress.org/trunk@45639 602fd350-edb4-49c9-b593-d223f7449a82
2019-07-15 06:24:08 +00:00
..
commentCount.php Code is Poetry. 2017-11-30 23:09:33 +00:00
conditionals.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in tests. 2019-07-02 04:43:01 +00:00
date.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
dateQuery.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
generatePostdata.php Code Modernisation: Fix known instances of array access on data types that can't be accessed as arrays. 2019-07-15 06:24:08 +00:00
isTerm.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
metaQuery.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
noFoundRows.php Code is Poetry. 2017-11-30 23:09:33 +00:00
parseQuery.php Code is Poetry. 2017-11-30 23:09:33 +00:00
postStatus.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
results.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in tests. 2019-07-02 04:43:01 +00:00
search.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
setupPostdata.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in tests. 2019-07-02 04:43:01 +00:00
stickies.php Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
taxQuery.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in tests. 2019-07-02 04:43:01 +00:00
vars.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
verboseRewriteRules.php Built/Test Tools: Unify the way the permastructure is set when used in conjunction with re-registering the initial taxonomies. This ensure that rewrite rules for taxonomies are consistently available. 2016-09-26 17:01:48 +00:00