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

Account use aliases in resolving parent classes #41

Conversation

Hubbitus
Copy link
Contributor

@Hubbitus Hubbitus commented Jan 5, 2022

Closes #40

@@ -190,11 +190,21 @@ private function getParentClassStatements(): ?array
return [];
}

if (null !== $usedClasses[$this->getParentClassName()]) {
if (null !== @$usedClasses[$this->getParentClassName()]) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (null !== @$usedClasses[$this->getParentClassName()]) {
if (true === isset($usedClasses[$this->getParentClassName()])) {

I think this would solve this as well ✌️

@nick-zh
Copy link
Member

nick-zh commented Jan 5, 2022

Many thanks for helping out with these issues 💪
I think you can close the other PR, since this one includes both fixes (or properly seperate the changes)
Also it seems some CI checks are failing

@Hubbitus
Copy link
Contributor Author

Hubbitus commented Jan 5, 2022

That is not solving the full problem properly. Please take a look at #39 which addresses both issues #38 and #40.

@Hubbitus Hubbitus closed this Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parser do not account use alias for parent classes
2 participants