Skip to content

Commit b1f1f24

Browse files
committed
Use dedicated function for type error
1 parent 7007e7e commit b1f1f24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_execute.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2521,7 +2521,7 @@ static zend_never_inline zend_bool ZEND_FASTCALL zend_array_key_exists_fast(Hash
25212521
str = ZSTR_EMPTY_ALLOC();
25222522
goto str_key;
25232523
} else {
2524-
zend_type_error("Illegal offset type");
2524+
zend_illegal_offset();
25252525
return 0;
25262526
}
25272527
}

0 commit comments

Comments
 (0)