<?php
trait Config {
protected function SetConfig() {}
}
trait Logger {
use Config;
protected function SetLogger() {}
}
class Foo {
use Logger, Config;
public function __construct() {}
}
new Foo;
Fatal error: Trait method SetConfig has not been applied, because there are collisions with other trait methods on Foo in /in/CnDgf on line 12
Process exited with code 255.
Fatal error: Trait method SetConfig has not been applied, because there are collisions with other trait methods on Foo in /in/CnDgf on line 16
Process exited with code 255.