79508607

Date: 2025-03-14 09:26:50
Score: 2.5
Natty:
Report link

Late answer but I had the problem now and solved it now with none of the proposed solutions.

Though I agree with @axiac about conditionally using a trait depending on its existence, I had a similar problem of conditional use of traits (based on other conditions).

class_alias() is your friend here.

https://stackoverflow.com/a/79508550/3872061

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @axiac
  • Low reputation (0.5):
Posted by: fpierrat