Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trait adoptation and method aliasing is not supported #54

Open
lisachenko opened this issue Dec 16, 2016 · 1 comment
Open

Trait adoptation and method aliasing is not supported #54

lisachenko opened this issue Dec 16, 2016 · 1 comment

Comments

@lisachenko
Copy link
Member

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;
    }
}
@peter279k
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants