-
-
Notifications
You must be signed in to change notification settings - Fork 439
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
Detect undefined functions on PullRequests #1087
Comments
Phan is outputting a lot, but it contains:
my config I used: not sure yet how I limit the results to only specific errors Also it does not know context, so also has false positives like in Mage_PageCache_Model_Control_Zend Also it finds some cases where I think its not an issue?
|
Maybe you want to test phpStan too .... https://phpstan.org/r/940d1f01-5b1e-43e5-9a28-3ec530e1cd9f
|
Ahh nice, I did not find thisnrule when I initially searched, so tried out the other first. |
Linked example uses highest severity level (8) ... but undefined mehtods are also detected on lowest level (0). Maybe run phpStan with |
working setup with phpstan: #1837 |
I believe this can be closed once we got #2035 merged, don't you think? |
With the PR #966 we introduced a function call, to a non defined function by accident.
The error was reported/fixed in #1084
It should be possible to detect this case with a static analyses, and have this triggering an error as one of the Checks running on a PR
possible tools?
https://github.com/vimeo/psalm
https://github.com/phan/phan
https://github.com/phpstan/phpstan
The text was updated successfully, but these errors were encountered: