Skip to content

PHP Notice for an Unknown operation #62

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

Closed
tomzx opened this issue May 22, 2015 · 0 comments
Closed

PHP Notice for an Unknown operation #62

tomzx opened this issue May 22, 2015 · 0 comments
Labels
Milestone

Comments

@tomzx
Copy link
Owner

tomzx commented May 22, 2015

PHP Notice:  Undefined index: V000 in phar:///path/php-semver-checker-git.phar/vendor/tomzx/php-semver-checker/src/PHPSemVerChecker/Configuration/LevelMapping.php on line 81

It appears that it is currently possible to trigger an Unknown. This operation can only trigger when analyzing a function.

I regularly test laravel's branches for semantic versioning changes and it appears to have been triggered by either laravel/framework@5699f63 or laravel/framework@cd56ae3. I will do some further analysis to determine which of the two is causing the problem as well as figure out why it is returning an Unknown operation.

Edit: Error is due to laravel/framework@5699f63. Basically, if nothing has changed, except for the comments, then it is "unknown". The php doc block is considered part of the Function_ object generated by PHP-Parser.

@tomzx tomzx added the bug label May 22, 2015
@tomzx tomzx added this to the Candidate for next Minor milestone May 22, 2015
tomzx added a commit that referenced this issue May 22, 2015
Do not add an Unknown operation to reports. If we do not know what has changed, there is no reason to report it. A report should only contain changes we can explain.
@tomzx tomzx closed this as completed May 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant