Why PHP Trait can’t implement interfaces?
The really short version is simpler because you can’t. That’s not how Traits work. When you write use SomeTrait; in PHP you are (effectively) telling the compiler to copy and paste the code from the Trait into the class where it’s being used. Because the use SomeTrait; is inside the class, it can’t add implements … Read more