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

Improve getNodeName #68

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Improve getNodeName #68

wants to merge 2 commits into from

Conversation

szepeviktor
Copy link
Member

@szepeviktor szepeviktor commented Mar 6, 2023

Filter out anonymous classes only.

@szepeviktor
Copy link
Member Author

This must be a @phpstan bug

 ------ ------------------------------------------------------------------------------------------ 

  Line   visitor.php                                                                               

 ------ ------------------------------------------------------------------------------------------ 

  311    Dumped type:                                                                              

         PhpParser\Node\Stmt\Class_|PhpParser\Node\Stmt\ClassMethod|PhpParser\Node\Stmt\Function_  

  312    Dumped type: PhpParser\Node\Identifier|null                                               

  313    Cannot access property $name on PhpParser\Node\Identifier|null.                           

 ------ ------------------------------------------------------------------------------------------ 

@szepeviktor szepeviktor marked this pull request as draft April 15, 2023 12:47
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.

1 participant