implementing using Traits in PHP 8.1 leading to Method Overriding Conflicts
I need some guidance on I've spent hours debugging this and I'm working on a personal project and I'm working with a method overriding conflict when using Traits in my PHP 8.1 application... I have two Traits, `TraitA` and `TraitB`, both of which define a method called `doSomething()`. When I try to use both Traits in my class `MyClass`, I get a fatal behavior: `Fatal behavior: Trait method doSomething has not been applied because there are collisions with other trait methods on MyClass`. Here's the relevant code snippet: ```php trait TraitA { public function doSomething() { echo 'Doing something from TraitA'; } } trait TraitB { public function doSomething() { echo 'Doing something from TraitB'; } } class MyClass { use TraitA, TraitB; } ``` I've tried renaming the methods in one of the Traits, but I want to keep both functionalities. I also attempted to use `insteadof` to resolve the collision, but it seems like that only allows one method from one Trait to be chosen. Is there a way to incorporate both methods into my class without losing functionality? Any advice would be appreciated! Thanks in advance! Am I approaching this the right way? The stack includes Php and several other technologies. Is there a better approach?