Skip to content

Commit 1b9ff16

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: Remove redundant condition
2 parents 48ede64 + d016c49 commit 1b9ff16

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
@@ -1568,7 +1568,7 @@ static bool array_is_const_ex(zend_array *array, uint32_t *max_checks)
15681568
if (!array_is_const_ex(array, max_checks)) {
15691569
return false;
15701570
}
1571-
} else if (UNEXPECTED(Z_TYPE_P(element) >=IS_OBJECT)) {
1571+
} else {
15721572
return false;
15731573
}
15741574
} ZEND_HASH_FOREACH_END();

0 commit comments

Comments
 (0)