parser-reflection
parser-reflection copied to clipboard
Trait adoptation and method aliasing is not supported
Following constructions produce logic errors, so they are disabled.
class ClassWithTraitAndAdaptation
{
use SimpleTrait {
foo as protected fooBar;
foo as private fooBaz;
}
}
class ClassWithTraitAndConflict
{
use SimpleTrait, ConflictedSimpleTrait {
foo as protected fooBar;
ConflictedSimpleTrait::foo insteadof SimpleTrait;
}
}
Since this PHP package requires php-7.1 version at least, I think this issue will not happen now because it's for php-5.6 version :).