[wp-trac] [WordPress Trac] #38103: Unit tests chokes due to clone being used (PHP 7)

WordPress Trac noreply at wordpress.org
Tue Sep 20 08:15:50 UTC 2016


#38103: Unit tests chokes due to clone being used (PHP 7)
------------------------------+------------------------------
 Reporter:  limikael          |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------------------

Comment (by swissspidy):

 It doesn't have much to do with PHP 7. Rather, it sounds like you're
 testing the plugin with the current stable version of WordPress — 4.6. —
 together with the test suite from trunk.

 In trunk, `$hook_object` is indeed an object. It was an array before. See
 #17817 and https://make.wordpress.org/core/2016/09/08/wp_hook-next-
 generation-actions-and-filters/.

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


More information about the wp-trac mailing list