Skip to content

Commit 2f6eb37

Browse files
committed
move code into attr_ast conditions
1 parent 3a90c38 commit 2f6eb37

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Zend/zend_compile.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7880,11 +7880,11 @@ static void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast, uint32
78807880
if (attributes_ast) {
78817881
zend_compile_attributes(
78827882
&prop->attributes, attributes_ast, 0, ZEND_ATTRIBUTE_TARGET_PROPERTY, ZEND_ATTRIBUTE_TARGET_PARAMETER);
7883-
}
78847883

7885-
zend_attribute *override_attribute = zend_get_attribute_str(prop->attributes, "override", sizeof("override")-1);
7886-
if (override_attribute) {
7887-
prop->flags |= ZEND_ACC_OVERRIDE;
7884+
zend_attribute *override_attribute = zend_get_attribute_str(prop->attributes, "override", sizeof("override")-1);
7885+
if (override_attribute) {
7886+
prop->flags |= ZEND_ACC_OVERRIDE;
7887+
}
78887888
}
78897889
}
78907890
}
@@ -8862,11 +8862,11 @@ static void zend_compile_prop_decl(zend_ast *ast, zend_ast *type_ast, uint32_t f
88628862

88638863
if (attr_ast) {
88648864
zend_compile_attributes(&info->attributes, attr_ast, 0, ZEND_ATTRIBUTE_TARGET_PROPERTY, 0);
8865-
}
88668865

8867-
zend_attribute *override_attribute = zend_get_attribute_str(info->attributes, "override", sizeof("override")-1);
8868-
if (override_attribute) {
8869-
info->flags |= ZEND_ACC_OVERRIDE;
8866+
zend_attribute *override_attribute = zend_get_attribute_str(info->attributes, "override", sizeof("override")-1);
8867+
if (override_attribute) {
8868+
info->flags |= ZEND_ACC_OVERRIDE;
8869+
}
88708870
}
88718871

88728872
CG(context).active_property_info_name = old_active_property_info_name;

0 commit comments

Comments
 (0)