This is a minor performance enhancement: * If an object is passed, the call to `is_object()` will be redundant. * If a non-object is passed, the `instanceof` operator (a variant of `is_a()`) will first [https://github.com/php/php-src/blob/f42992f/Zend/zend_builtin_functions.c#L630-L631 check if it is an object] before doing any further processing. Therefore, no additional processing cycles should be wasted in both cases. Follow-up to [38571]. Props bor0, johnbillion, davidbaumwald. Fixes #58290. Built from https://develop.svn.wordpress.org/trunk@55748 git-svn-id: http://core.svn.wordpress.org/trunk@55260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
15 KiB
15 KiB