Skip to content

Commit 051c6ec

Browse files
committed
Drop validate_deprecated_attribute validator for #[\Deprecated]
1 parent 5fb982a commit 051c6ec

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Zend/zend_attributes.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,6 @@ static void validate_allow_dynamic_properties(
8585
scope->ce_flags |= ZEND_ACC_ALLOW_DYNAMIC_PROPERTIES;
8686
}
8787

88-
void validate_deprecated_attribute(zend_attribute *attr, uint32_t target, zend_class_entry *scope)
89-
{
90-
}
91-
9288
ZEND_METHOD(Attribute, __construct)
9389
{
9490
zend_long flags = ZEND_ATTRIBUTE_TARGET_ALL;
@@ -541,7 +537,6 @@ void zend_register_attribute_ce(void)
541537

542538
zend_ce_deprecated = register_class_Deprecated();
543539
attr = zend_mark_internal_attribute(zend_ce_deprecated);
544-
attr->validator = validate_deprecated_attribute;
545540
}
546541

547542
void zend_attributes_shutdown(void)

0 commit comments

Comments
 (0)