On Tue, Mar 31, 2026 at 2:56 AM Derick Rethans <[email protected]> wrote:

>
> I think I'm on the " Always reject using #[\Override] on an enum case,
> saying that the attribute does not target enum cases" side here, as
> mixing class constants with enum cases sounds like a mismatch to me.
>
> cheers,
> Derick
>

On the other hand, if someone is intentionally overriding an interface
constant with an enum case, all the more reason that the overriding should
be explicitly documented, which is what `#[\Override]` would do.

-Daniel

Reply via email to