<?php
trait A {
public function smallTalk() {
echo 'a';
}
public function bigTalk() {
echo 'A';
}
}
trait B {
public function smallTalk() {
echo 'b';
}
public function bigTalk() {
echo 'B';
}
}
class Talker {
use A, B ;
}
Fatal error: Trait method B::smallTalk has not been applied as Talker::smallTalk, because of collision with A::smallTalk in /in/t4Via on line 20
Process exited with code 255.
Fatal error: Trait method smallTalk has not been applied, because there are collisions with other trait methods on Talker in /in/t4Via on line 20
Process exited with code 255.
Fatal error: Trait method smallTalk has not been applied, because there are collisions with other trait methods on Talker in /in/t4Via on line 22
Process exited with code 255.