<?php
trait TOne {
public static function foo(){
}
}
trait TTwo {
public function foo() {
echo 'Test';
}
}
class Bar {
use TOne, TTwo;
}
$a = new Bar();
$a->foo();
?>
Fatal error: Trait method TTwo::foo has not been applied as Bar::foo, because of collision with TOne::foo in /in/RQDFL on line 13
Process exited with code 255.
Fatal error: Trait method foo has not been applied, because there are collisions with other trait methods on Bar in /in/RQDFL on line 13
Process exited with code 255.
Fatal error: Trait method foo has not been applied, because there are collisions with other trait methods on Bar in /in/RQDFL on line 15
Process exited with code 255.