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

Uncaught Error: Call to a member functio toString() on null #31

Closed
the6thBook opened this issue Jun 24, 2021 · 3 comments
Closed

Uncaught Error: Call to a member functio toString() on null #31

the6thBook opened this issue Jun 24, 2021 · 3 comments

Comments

@the6thBook
Copy link

I'm getting the following error using progpilot 0.8.0 with php 7.4.20:

PHP Fatal error: Uncaught Error: Call to a member function toString() on null in phar:///home/centos/progpilot/progpilot/vendor/ircmaxell/php-cfg/lib/PHPCfg/AstVisitor/MagicStringResolver.php:32
Stack trace:
#0 phar:///home/centos/progpilot/progpilot/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(123): PHPCfg\AstVisitor\MagicStringResolver->enterNode(Object(PhpParser\Node\Stmt\Class_))
#1 phar:///home/centos/progpilot/progpilot/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(146): PhpParser\NodeTraverser->traverseNode(Object(PhpParser\Node\Expr\New_))
#2 phar:///home/centos/progpilot/progpilot/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(223): PhpParser\NodeTraverser->traverseNode(Object(PhpParser\Node\Stmt\Return_))
#3 phar:///home/centos/progpilot/progpilot/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(114): PhpParser\NodeTraverser->traverseArray(Array)
#4 phar:///home/centos/progpilot/progpilot/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(223): PhpParser\NodeTraverser->trave in phar:///home/centos/progpilot/progpilot/vendor/ircmaxell/php-cfg/lib/PHPCfg/AstVisitor/MagicStringResolver.php on line 32

Thanks

@CDelugeau
Copy link

Same problem. php-cfg has a tag 0.6.0 since april. Can you update your composer.json to this version ?

@eric-therond
Copy link
Collaborator

if you have time to try with the latest progpilot version (v1.0.0)

Eric

@eric-therond
Copy link
Collaborator

progpilot version (v1.0.2) solves this.

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

No branches or pull requests

3 participants