Skip to content

Commit 120b149

Browse files
committed
Remove an unnecessary comparison
1 parent 525442d commit 120b149

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
@@ -2184,9 +2184,6 @@ static bool do_trait_constant_check(
21842184

21852185
zend_class_constant *old_constant = Z_PTR_P(zv);
21862186

2187-
if (trait_constant->ce == old_constant->ce) {
2188-
return true;
2189-
}
21902187
if ((ZEND_CLASS_CONST_FLAGS(trait_constant) & flags_mask) == (ZEND_CLASS_CONST_FLAGS(old_constant) & flags_mask)) {
21912188
is_compatible = check_trait_property_or_constant_value_compatibility(ce, &trait_constant->value, &old_constant->value);
21922189
}

0 commit comments

Comments
 (0)