Skip to content

Commit b69376b

Browse files
committed
Remove an unnecessary comparison
1 parent 5417b24 commit b69376b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Zend/zend_inheritance.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2253,9 +2253,6 @@ static bool do_trait_constant_check(
22532253

22542254
zend_class_constant *old_constant = Z_PTR_P(zv);
22552255

2256-
if (trait_constant->ce == old_constant->ce) {
2257-
return true;
2258-
}
22592256
if ((ZEND_CLASS_CONST_FLAGS(trait_constant) & flags_mask) == (ZEND_CLASS_CONST_FLAGS(old_constant) & flags_mask)) {
22602257
is_compatible = check_trait_property_or_constant_value_compatibility(ce, &trait_constant->value, &old_constant->value);
22612258
}

0 commit comments

Comments
 (0)