Skip to content

Commit 6de0444

Browse files
committed
Remove an unnecessary constant flag modification
1 parent b69376b commit 6de0444

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
@@ -2280,9 +2280,6 @@ static void do_inherit_trait_constant(zend_string *name, zend_class_constant *c,
22802280
if (Z_TYPE(c->value) == IS_CONSTANT_AST) {
22812281
ce->ce_flags &= ~ZEND_ACC_CONSTANTS_UPDATED;
22822282
ce->ce_flags |= ZEND_ACC_HAS_AST_CONSTANTS;
2283-
if (traits[current_trait]->ce_flags & ZEND_ACC_IMMUTABLE) {
2284-
Z_CONSTANT_FLAGS(c->value) |= CONST_OWNED;
2285-
}
22862283
}
22872284

22882285
c->ce = ce;

0 commit comments

Comments
 (0)