<?php
trait TraitA {
public function methodA() {}
public function methodB() {}
}
trait TraitB {
public function methodA() {}
public function methodB() {}
}
class ClassA {
use TraitA, TraitB;
}
Fatal error: Trait method TraitB::methodA has not been applied as ClassA::methodA, because of collision with TraitA::methodA in /in/CbUAc on line 13
Process exited with code 255.
Fatal error: Trait method methodA has not been applied, because there are collisions with other trait methods on ClassA in /in/CbUAc on line 13
Process exited with code 255.
Fatal error: Trait method methodA has not been applied, because there are collisions with other trait methods on ClassA in /in/CbUAc on line 15
Process exited with code 255.