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

Fatal error #61

Closed
serl opened this issue Mar 2, 2020 · 3 comments
Closed

Fatal error #61

serl opened this issue Mar 2, 2020 · 3 comments

Comments

@serl
Copy link

serl commented Mar 2, 2020

Hello,
with the latest version:

Info:	Using [/app/yakpro-po.cnf] Config File...
Info:	yakpro-po version = 2.0.7
Info:	Process Mode		= directory
Info:	source_directory	= [api]
Info:	target_directory	= [api-obfuscated]
Obfuscating api/src/cut/Service.php
Obfuscating api/src/cut/Factory.php
Obfuscating api/src/cut/Proxy.php

Fatal error: Uncaught TypeError: Argument 1 passed to MyNodeVisitor::get_identifier_name() must implement interface PhpParser\Node, null given, called in /usr/local/yakpro-po/include/classes/parser_extensions/my_node_visitor.php on line 537 and defined in /usr/local/yakpro-po/include/classes/parser_extensions/my_node_visitor.php:45
Stack trace:
#0 /usr/local/yakpro-po/include/classes/parser_extensions/my_node_visitor.php(537): MyNodeVisitor->get_identifier_name(NULL)
#1 /usr/local/yakpro-po/PHP-Parser/lib/PhpParser/NodeTraverser.php(230): MyNodeVisitor->leaveNode(Object(PhpParser\Node\Stmt\UseUse))
#2 /usr/local/yakpro-po/PHP-Parser/lib/PhpParser/NodeTraverser.php(114): PhpParser\NodeTraverser->traverseArray(Array)
#3 /usr/local/yakpro-po/PHP-Parser/lib/PhpParser/NodeTraverser.php(223): PhpParser\NodeTraverser->traverseNode(Object(PhpParser\Node\Stmt\Use_))
#4 /usr/local/yakpro-po/PHP-Parser/lib/PhpParser/NodeTraverser.php(114): PhpParser\NodeTraverser->traverseArray(Array)
#5 /usr/local/yakpro-po/PHP-Parser/lib/PhpParser in /usr/local/yakpro-po/include/classes/parser_extensions/my_node_visitor.php on line 45
@pk-fr
Copy link
Owner

pk-fr commented Mar 2, 2020

can you provide me an example of a small piece of source code that produces the bug?

@serl
Copy link
Author

serl commented Mar 2, 2020

<?php
use \Mynamespace\ClassName;

@pk-fr
Copy link
Owner

pk-fr commented Mar 2, 2020

thanx, bug fixed with version 2.0.8

@pk-fr pk-fr closed this as completed Mar 2, 2020
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

2 participants