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

Phan emits PhanUndeclaredClassMethod instead of PhanContextNotObject for self::foo() in namespace outside class. #4070

Closed
TysonAndre opened this issue Jul 17, 2020 · 0 comments · Fixed by #4324
Labels
bug A crash in Phan, a recent change causing incorrect analysis results, etc.

Comments

@TysonAndre
Copy link
Member

TysonAndre commented Jul 17, 2020

<?php
namespace X;

// $this->foo();
// Wrong issue message: PhanUndeclaredClassMethod Call to method foo from undeclared class \X\self
// Expected: PhanContextNotObject (happens without namespace)
self::foo();
@TysonAndre TysonAndre added the bug A crash in Phan, a recent change causing incorrect analysis results, etc. label Jul 17, 2020
TysonAndre added a commit to TysonAndre/phan that referenced this issue Dec 26, 2020
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

Successfully merging a pull request may close this issue.

1 participant