Skip to content

Commit 368766e

Browse files
committed
Set expectations
1 parent 705e93a commit 368766e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_execute.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -982,9 +982,9 @@ static zend_always_inline bool zend_check_type_slow(
982982
bool is_return_type, bool is_internal)
983983
{
984984
uint32_t type_mask;
985-
if (ZEND_TYPE_HAS_CLASS(*type) && Z_TYPE_P(arg) == IS_OBJECT) {
985+
if (ZEND_TYPE_HAS_CLASS(*type) && EXPECTED(Z_TYPE_P(arg) == IS_OBJECT)) {
986986
zend_class_entry *ce;
987-
if (ZEND_TYPE_HAS_LIST(*type)) {
987+
if (UNEXPECTED(ZEND_TYPE_HAS_LIST(*type))) {
988988
zend_type *list_type;
989989
ZEND_TYPE_LIST_FOREACH(ZEND_TYPE_LIST(*type), list_type) {
990990
if (HAVE_CACHE_SLOT && *cache_slot) {

0 commit comments

Comments
 (0)