Skip to content

Commit 109adf2

Browse files
committed
Remove an unnecessary constant flag modification
1 parent 120b149 commit 109adf2

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
@@ -2211,9 +2211,6 @@ static void do_inherit_trait_constant(zend_string *name, zend_class_constant *c,
22112211
if (Z_TYPE(c->value) == IS_CONSTANT_AST) {
22122212
ce->ce_flags &= ~ZEND_ACC_CONSTANTS_UPDATED;
22132213
ce->ce_flags |= ZEND_ACC_HAS_AST_CONSTANTS;
2214-
if (traits[current_trait]->ce_flags & ZEND_ACC_IMMUTABLE) {
2215-
Z_CONSTANT_FLAGS(c->value) |= CONST_OWNED;
2216-
}
22172214
}
22182215

22192216
c->ce = ce;

0 commit comments

Comments
 (0)