-
Notifications
You must be signed in to change notification settings - Fork 21
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
Alert on wrong version #121
Comments
Each analyser will details you each element (class, interface, function, constant ) and theirs versions (PHP min/max). Of course it cannot tell you exactly where these elements are located/used but it's an helper to find in your source code. Did I answered to your question ? |
Maybe a settings for the minimum version and an alert with the lines with the problematic code will be very useful. Uhm myabe i use the wrong command? |
Hum, I think I should improve again the documentation ! Did you see that there are other analysers available ? So try it when you run your parse, E.g : When you don't specify analyser, its the |
WOW But a paramenter like -min 5.2.4 that report if there is something that require a different bigger version? Actually the only way is read all the list, a reporting solution simplify the check. |
Could you provide an example (url if code is public) about such situation |
Hello @Mte90 I've took time to think about a solution that will change less and use the filter feature that is already available with all analysers. I've reused the summary analyser that provide actually less (and probaly useless) informations.
And if you want to see elements that are greater a PHP limit, you have to use the filter (--php option) feature like this :
and more output ... |
Uhm this solution is very better. |
FYI, I run the new summary analyser version on your source code, with command
And if I filter (for example on PHP 5.0 or greater), with this command
|
WOW!! |
Almost : I have to fix dupplicated lines but I'll include it in final 3.3 version now you're agree |
👍 |
Done |
The parameter --php not exist anymore in phpcompatinfo 4.x there is a way to check for the minimum version? |
Yes used the filter feature - See http://php5.laurent-laville.org/compatinfo/manual/current/en/developer-guide--filters.html |
Well the command was very useful and fast respect a custom filters. |
Command was very limited, and filter with closure allow to customize all (or almost) data to return / render. |
an example for create a check by parameters? |
I am not sure to have well understood your needs. Coul you explains more please ? |
like in the old version, with a parameter choose the minimum php version to scan |
The filter feature available in version 4.x offer much more possibily that Please use, |
Thank you! |
I develop plugins for wordpress but the minimum requirement is PHP 5.2.4.
I check weekly the minimum version but is possible get an alert that report the wrong line for the minimum requirement?
Now i scan manually in search of anonymous function and other things.
The text was updated successfully, but these errors were encountered: