parser-reflection icon indicating copy to clipboard operation
parser-reflection copied to clipboard

Trait adoptation and method aliasing is not supported

Open lisachenko opened this issue 8 years ago • 1 comments

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;
    }
}

lisachenko avatar Dec 16 '16 07:12 lisachenko

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 :).

peter279k avatar Nov 26 '20 08:11 peter279k