Skip to content

Conversation

@ondrejmirtes
Copy link
Contributor

RFC: https://wiki.php.net/rfc/deprecated_traits

Unfortunately we have to add the TARGET_CLASS constant. From the RFC:

The #[\Deprecated] attribute will be allowed on traits. Since Attribute::TARGET_CLASS includes traits as well as classes, interfaces, and enums, a validator will be used to ensure that when applied to a “class” (zend_class_entry), it must correspond to a trait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant