Skip to content

Commit d016c49

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Remove redundant condition
2 parents 9437aa9 + dd01c74 commit d016c49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@ static bool array_is_const_ex(zend_array *array, uint32_t *max_checks)
14381438
if (!array_is_const_ex(array, max_checks)) {
14391439
return false;
14401440
}
1441-
} else if (UNEXPECTED(Z_TYPE_P(element) >=IS_OBJECT)) {
1441+
} else {
14421442
return false;
14431443
}
14441444
} ZEND_HASH_FOREACH_END();

0 commit comments

Comments
 (0)