Overview
WordPress v4.4 introduces some new objects for WP_Term and WP_Comment. This is mostly OK with Comment Mail. However, it recently came to my attention that in PHP 7.0 there are some flags being thrown with respect to type hints that are looking for \stdClass instances instead of the new WP_Comment class.
What needs to change?
We need to search the codebase for \stdClass $comment and remove \stdClass.
Overview
WordPress v4.4 introduces some new objects for
WP_TermandWP_Comment. This is mostly OK with Comment Mail. However, it recently came to my attention that in PHP 7.0 there are some flags being thrown with respect to type hints that are looking for\stdClassinstances instead of the newWP_Commentclass.What needs to change?
We need to search the codebase for
\stdClass $commentand remove\stdClass.