<?php
trait TOne {
public function foo() { // abstract methods are not considered for conflict
echo 'Test';
}
}
trait TTwo {
public function Foo() {
echo 'Test2';
}
}
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/57JGJ on line 14
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/57JGJ on line 14
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/57JGJ on line 16
Process exited with code 255.
Output for 5.4.0 - 5.4.10
Fatal error: Trait method foo has not been applied, because there are collisions with other trait methods on Bar in /in/57JGJ on line 16
Process exited with code 255.