<?php
namespace Foo;
trait aTrait {
protected function one() {
echo "a-one";
}
}
namespace Bar;
use Foo\aTrait as bTrait;
trait aTrait {
use bTrait {
one as originalOne;
}
protected function one() {
echo "b-one";
$this->originalOne();
}
}
namespace;
class Test {
use aTrait;
public function __construct() {
$this->one();
}
}
$test = new Test();
Parse error: syntax error, unexpected ';', expecting identifier (T_STRING) or \\ (T_NS_SEPARATOR) or '{' in /in/mMIHY on line 27
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_STRING in /in/mMIHY on line 5
Process exited with code 255.