[wp-trac] [WordPress Trac] #42860: PHP 7.2 warning - Parameter must be an array or an object that implements Countable in /wp-includes/class-wp-query.php on line 3035

WordPress Trac noreply at wordpress.org
Wed Jan 24 21:43:19 UTC 2018


#42860: PHP 7.2 warning - Parameter must be an array or an object that implements
Countable in /wp-includes/class-wp-query.php on line 3035
--------------------------+---------------------
 Reporter:  lisota        |       Owner:  jorbin
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.9.3
Component:  Query         |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:  fixed-major   |     Focuses:
--------------------------+---------------------
Changes (by jorbin):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"42597"]:
 {{{
 #!CommitTicketReference repository="" revision="42597"
 Query: Fix warning on counting non countable

 Merges [42581], [42585], and [42594] to the 4.9 branch.

 Adds tests to continue the behavior for both null and strings. Skip the
 tests on PHP 5.2 as they require ReflectionMethod.

 See https://wiki.php.net/rfc/counting_non_countables for information on
 the PHP change.

 Fixes #42860.
 Props dd32 for test skipping and janak007 and ayeshrajans for initial
 patches.
 }}}

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


More information about the wp-trac mailing list