1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.2'

* PHP-8.2:
  Remove redundant condition
This commit is contained in:
Ilija Tovilo
2023-08-17 18:55:51 +02:00

View File

@@ -1568,7 +1568,7 @@ static bool array_is_const_ex(zend_array *array, uint32_t *max_checks)
if (!array_is_const_ex(array, max_checks)) {
return false;
}
} else if (UNEXPECTED(Z_TYPE_P(element) >=IS_OBJECT)) {
} else {
return false;
}
} ZEND_HASH_FOREACH_END();