progpilot icon indicating copy to clipboard operation
progpilot copied to clipboard

Unknown Node Encountered : Stmt_GroupUse

Open kaystrobach opened this issue 5 years ago • 1 comments

progpilot fails to run, when use statements are in use

kaystrobach avatar Apr 22 '20 20:04 kaystrobach

Hello, this is related to an issue (https://github.com/ircmaxell/php-cfg/issues/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 avatar Apr 26 '20 11:04 eric-therond

Done in v1.0.0

eric-therond avatar Dec 02 '22 20:12 eric-therond