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
I found this error : Undefined index: ccn #142
Comments
Possible dublicate of #141? |
Is same problem but the code is different, maybe could be more a test |
The problem seems to be related to the |
any ETA on the fix, as i'm not 100% sure what happens in the analyzer (it seems to be quite complex) |
It is too complex, I'm afraid, and should be rewritten from scratch. |
@sebastianbergmann would there be anything wrong with just initializing the ccn index? See my diff below, works for me. https://github.com/timhoeppner/phploc/commit/e544f60f6663c222945ff3bd3c239351daa76ca6 |
@timhoeppner That would just hide the problem. |
We're suffering from this, too; and, well, I'm no mathematician, but it looks already wrong by looking at it: on line 507, the index Or should the ccn index be there as of the algorithm and it's actually an error if it's not? |
Good question @afoeder . I have the same feeling |
Sorry, but I have to repeat myself: that would just hide this problem and create another. The problem here is that entire analyser should be rewritten. From scratch. Using either PHP-Parser (maybe with BetterReflection in front of it) or using PHP 7's internal AST. Trying to reason about PHP code just by looking at tokens is insane. |
Duplicate of #141. |
Version : phploc 3.0.0 by Sebastian Bergmann
Complete message : PHP Notice: Undefined index: ccn in phar:///usr/local/bin/phploc/src/Analyser.php on line 507
Code who generate this error :
The text was updated successfully, but these errors were encountered: