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

Exception on analyzing project #59

Closed
scaytrase opened this issue Dec 13, 2015 · 0 comments
Closed

Exception on analyzing project #59

scaytrase opened this issue Dec 13, 2015 · 0 comments
Labels
bug A crash in Phan, a recent change causing incorrect analysis results, etc.

Comments

@scaytrase
Copy link
Contributor

I've disabled xdebug (#58) and got the following exception

> C:\Work\Tools\PHP7\php.exe C:/work/tools/phan/phan -f files.txt -3 vendor/

Fatal error: Uncaught TypeError: Argument 2 passed to Phan\Language\Element\Clazz::hasPropertyWithName() must be of the type string, object given, called in C:\Work\Tools\phan\src\Phan\Analyze\ClassName\ValidationVisitor.php on line 171 and defined in C:\Work\Tools\phan\src\Phan\Language\Element\Clazz.php:304
Stack trace:
#0 C:\Work\Tools\phan\src\Phan\Analyze\ClassName\ValidationVisitor.php(171): Phan\Language\Element\Clazz->hasPropertyWithName(Object(Phan\CodeBase), Object(ast\Node))
#1 C:\Work\Tools\phan\src\Phan\Language\AST\Element.php(141): Phan\Analyze\ClassName\ValidationVisitor->visitStaticProp(Object(ast\Node))
#2 C:\Work\Tools\phan\src\Phan\Language\AST.php(116): Phan\Language\AST\Element->acceptKindVisitor(Object(Phan\Analyze\ClassName\ValidationVisitor))
#3 C:\Work\Tools\phan\src\Phan\Analyze\UnionTypeVisitor.php(613): Phan\Language\AST::classNameFromNode(Object(Phan\Language\Context), Object(Phan\CodeBase), Object(ast\Node))
#4 C:\Work\Tools\phan\src\Phan\Language\AST\Element.php(141): Phan\Analyze\UnionType in C:\Work\Tools\phan\src\Phan\Language\Element\Clazz.php on line 304
rlerdorf added a commit that referenced this issue Dec 13, 2015
@morria morria added the bug A crash in Phan, a recent change causing incorrect analysis results, etc. label Dec 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A crash in Phan, a recent change causing incorrect analysis results, etc.
Projects
None yet
Development

No branches or pull requests

3 participants