<?php
trait Chicken {
public function x() {
echo "x";
}
}
trait Turkey {
public function x() {
Chicken::x();
}
}
class Duck {
use Chicken;
use Turkey;
}
$duck = new Duck();
$duck->x();
Fatal error: Trait method Turkey::x has not been applied as Duck::x, because of collision with Chicken::x in /in/LasAm on line 19
Process exited with code 255.
Fatal error: Trait method x has not been applied, because there are collisions with other trait methods on Duck in /in/LasAm on line 19
Process exited with code 255.
Fatal error: Trait method x has not been applied, because there are collisions with other trait methods on Duck in /in/LasAm on line 24
Process exited with code 255.