Skip to content

Commit 462b170

Browse files
committedApr 5, 2025·
Zend/zend_inheritance: Use bool instead of uint32_t
1 parent dcf6649 commit 462b170

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎Zend/zend_inheritance.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2194,7 +2194,7 @@ static void do_interface_implementation(zend_class_entry *ce, zend_class_entry *
21942194

21952195
ZEND_API void zend_do_implement_interface(zend_class_entry *ce, zend_class_entry *iface) /* {{{ */
21962196
{
2197-
uint32_t ignore = 0;
2197+
bool ignore = false;
21982198
uint32_t current_iface_num = ce->num_interfaces;
21992199
uint32_t parent_iface_num = ce->parent ? ce->parent->num_interfaces : 0;
22002200

@@ -2206,7 +2206,7 @@ ZEND_API void zend_do_implement_interface(zend_class_entry *ce, zend_class_entry
22062206
i--;
22072207
} else if (ce->interfaces[i] == iface) {
22082208
if (EXPECTED(i < parent_iface_num)) {
2209-
ignore = 1;
2209+
ignore = true;
22102210
} else {
22112211
zend_error_noreturn(E_COMPILE_ERROR, "Class %s cannot implement previously implemented interface %s", ZSTR_VAL(ce->name), ZSTR_VAL(iface->name));
22122212
}

0 commit comments

Comments
 (0)
Please sign in to comment.