Skip to content
New issue

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

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

Already on GitHub? # to your account

Unknown Node Encountered : Stmt_GroupUse #20

Closed
kaystrobach opened this issue Apr 22, 2020 · 2 comments
Closed

Unknown Node Encountered : Stmt_GroupUse #20

kaystrobach opened this issue Apr 22, 2020 · 2 comments

Comments

@kaystrobach
Copy link

progpilot fails to run, when use statements are in use

@eric-therond
Copy link
Collaborator

Hello,
this is related to an issue (ircmaxell/php-cfg#58) in the ircmaxell/php-cfg dependency. You can comment this issue to alert the maintainer?

On the progpilot side if you surround the analysis with try/catch,
the analysis will not fail when encountering an unknown node:

try {
   $analyzer->run($context);
} catch (Exception $e) {
   echo 'Exception : ',  $e->getMessage(), "\n";
}

@eric-therond
Copy link
Collaborator

Done in v1.0.0

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants