Hi internals,
I’d like to start the discussion for a new RFC about adding support for #[\Deprecated] on traits.
- RFC: https://wiki.php.net/rfc/deprecated_traits
- Implementation: https://github.com/php/php-src/pull/19045
–Daniel
Hi internals,
I’d like to start the discussion for a new RFC about adding support for #[\Deprecated] on traits.
–Daniel
Hi
On 7/6/25 01:30, Daniel Scherzer wrote:
I'd like to start the discussion for a new RFC about adding support for
#[\Deprecated] on traits.* RFC: PHP: rfc:deprecated_traits
* Implementation: [RFC] Allow `#[\Deprecated]` on traits by DanielEScherzer · Pull Request #19045 · php/php-src · GitHub
Thank you. That makes sense to me. On a first look, I agree that `use`ing a trait is the single and obvious point where the message for a deprecated trait should be emitted and can't think of anything else.
Best regards
Tim Düsterhus