We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 705e93a commit 368766eCopy full SHA for 368766e
Zend/zend_execute.c
@@ -982,9 +982,9 @@ static zend_always_inline bool zend_check_type_slow(
982
bool is_return_type, bool is_internal)
983
{
984
uint32_t type_mask;
985
- if (ZEND_TYPE_HAS_CLASS(*type) && Z_TYPE_P(arg) == IS_OBJECT) {
+ if (ZEND_TYPE_HAS_CLASS(*type) && EXPECTED(Z_TYPE_P(arg) == IS_OBJECT)) {
986
zend_class_entry *ce;
987
- if (ZEND_TYPE_HAS_LIST(*type)) {
+ if (UNEXPECTED(ZEND_TYPE_HAS_LIST(*type))) {
988
zend_type *list_type;
989
ZEND_TYPE_LIST_FOREACH(ZEND_TYPE_LIST(*type), list_type) {
990
if (HAVE_CACHE_SLOT && *cache_slot) {
0 commit comments