On Sun, Jan 10, 2021 at 2:48 AM G. P. B. <george.bany...@gmail.com> wrote:
> Just to clarify this raises an E_DEPRECATED right? > Could it make sense to raise E_USER_DEPRECATED instead? > I hadn't checked this before, but as per George's message, this is worrying. I've been quite loud about it in the past, but static metadata definitions should really not lead to runtime side-effects, especially if not pure (error handling system tripped here). I'd be totally for a built-in `#[Deprecated]` attribute if it did **NOT** have a runtime behavior, which is an absolute no-go from my PoV. This stuff is easily introspectible via tools like phpstan, psalm, phan, and does not need to lead to more problematic runtime issues. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/