Rector: [BUG] PHP crashes in VariableTypeResolver

Created on 27 Mar 2018  路  7Comments  路  Source: rectorphp/rector

Finding running against https://github.com/nelmio/alice

PHP Recoverable fatal error:  Object of class PhpParser\Node\Expr\Variable could not be converted to string in /home/carusogabriel/.composer/vendor/rector/rector/packages/NodeTypeResolver/src/PerNodeTypeResolver/VariableTypeResolver.php on line 54
bug

All 7 comments

And the code causing it?

Nothing :cry:

Processing 253 files
====================

 170/253 [鈻撯枔鈻撯枔鈻撯枔鈻撯枔鈻撯枔鈻撯枔鈻撯枔鈻撯枔鈻撯枔鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒]  67%PHP Recoverable fatal error:  Object of class PhpParser\Node\Expr\Variable could not be converted to string in /home/carusogabriel/.composer/vendor/rector/rector/packages/NodeTypeResolver/src/PerNodeTypeResolver/VariableTypeResolver.php on line 54

I'm running folder by folder to find it.

I'm running folder by folder to find it.

Awesome, without that there is nothing to do about this issue

Any updates?

Still debugging it :(

If you're able to provide failing code, we could make sure the exception reports the file name as well next time.

Yes. I'm try to find the file, than the code, so we can know what caused and fix it :+1:

Was this page helpful?
0 / 5 - 0 ratings