Skip to content

Commit 2297a6d

Browse files
committed
Use dedicated function for illegal offset type error
1 parent 5fc7024 commit 2297a6d

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
@@ -2599,7 +2599,7 @@ static zend_never_inline zend_bool ZEND_FASTCALL zend_array_key_exists_fast(Hash
25992599
str = ZSTR_EMPTY_ALLOC();
26002600
goto str_key;
26012601
} else {
2602-
zend_type_error("Illegal offset type");
2602+
zend_illegal_offset();
26032603
return 0;
26042604
}
26052605
}

0 commit comments

Comments
 (0)