Open anlutro opened 9 years ago
$ ./vendor/bin/tuli analyze classes/Utils/ArrayUtil.php Analyzing classes/Utils/ArrayUtil.php PHP Catchable fatal error: Argument 1 passed to PHPCfg\Parser::parseExpr_AssignRef() must be an instance of PhpParser\Node\Expr\Assign, instance of PhpParser\Node\Expr\AssignRef given, called in /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php on line 656 and defined in /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php on line 707 PHP Stack trace: PHP 1. {main}() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/tuli/bin/tuli:0 PHP 2. Cilex\Application->run() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/tuli/bin/tuli:26 PHP 3. Symfony\Component\Console\Application->run() /home/andreas/dev/php/autarky-framework/vendor/cilex/cilex/src/Cilex/Application.php:66 PHP 4. Symfony\Component\Console\Application->doRun() /home/andreas/dev/php/autarky-framework/vendor/symfony/console/Application.php:123 PHP 5. Symfony\Component\Console\Application->doRunCommand() /home/andreas/dev/php/autarky-framework/vendor/symfony/console/Application.php:192 PHP 6. Symfony\Component\Console\Command\Command->run() /home/andreas/dev/php/autarky-framework/vendor/symfony/console/Application.php:841 PHP 7. Tuli\Command\Analyze->execute() /home/andreas/dev/php/autarky-framework/vendor/symfony/console/Command/Command.php:259 PHP 8. Tuli\Command->execute() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/tuli/lib/Tuli/Command/Analyze.php:32 PHP 9. Tuli\Command->getGraphsFromFiles() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/tuli/lib/Tuli/Command.php:59 PHP 10. PHPCfg\Parser->parse() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/tuli/lib/Tuli/Command.php:107 PHP 11. PHPCfg\Parser->parseNodes() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php:62 PHP 12. PHPCfg\Parser->parseNode() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php:86 PHP 13. PHPCfg\Parser->parseStmt_Namespace() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php:100 PHP 14. PHPCfg\Parser->parseNodes() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php:382 PHP 15. PHPCfg\Parser->parseNode() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php:86 PHP 16. PHPCfg\Parser->parseStmt_Class() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php:100 PHP 17. PHPCfg\Parser->parseNodes() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php:115 PHP 18. PHPCfg\Parser->parseNode() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php:86 PHP 19. PHPCfg\Parser->parseStmt_ClassMethod() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php:100 PHP 20. PHPCfg\Parser->parseNodes() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php:144 PHP 21. PHPCfg\Parser->parseNode() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php:86 PHP 22. PHPCfg\Parser->parseStmt_Foreach() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php:100 PHP 23. PHPCfg\Parser->parseNodes() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php:260 PHP 24. PHPCfg\Parser->parseNode() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php:86 PHP 25. PHPCfg\Parser->parseExprNode() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php:95 PHP 26. PHPCfg\Parser->parseExpr_AssignRef() /home/andreas/dev/php/autarky-framework/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php:656
ArrayUtil.php source code
This has been fixed in php-cfg: https://github.com/ircmaxell/php-cfg/commit/e4cd050fa5a35ab6b88c1e618388e0d45ce52c52
ArrayUtil.php source code