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
On Sat, Jul 5, 2025 at 4:30 PM Daniel Scherzer <daniel.e.scherzer@gmail.com> wrote:
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
Given the lack of further feedback outside of Tim’s comment, either here or on GitHub, I plan to open the vote in the next few days.
-Daniel