<?php
trait Test1
{
private function test() {echo "OK";}
}
trait Test2
{
use Test1 {
test as testRedirect;
};
private function test() {$this->testRedirect(); echo " OK 2";}
}
class TestClass1
{
use Test2;
public function testIt()
{
$this->test();
}
}
$test = new TestClass1();
$test->testIt();