-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 checks #4533
Comments
I further update the flow which limits to the following messages. These seem most relevant, the others are typing errors that need better hinting and are current automatically "resolved":
Extended list:
|
Thanks. Most likely a lot of them are false positives, but valuable for a manual check nonetheless. |
I reduced the number of message quite a bit - you can select which ones you fix and which ones you do not - then the baseline.txt can be updated . I forgot to indicate that you can surely reuse the runPhan.sh script in my modified version of Yii to run the checks locally. |
Manually checked your list and applied in #4537 Here's a log including the non-fixed and false positives: phan-yii.csv |
@marcovtwout Thank you for going through this and making these adjustments. My feedback:
|
@mdeweerd Thanks for checking the details :)
|
IHMO not checking does not lead to issues if all goes well. It's not critical to me to modify this behavior which has been like this since "day 0". After reading when this call can return false, I decided to throw an exception in "fork" As far as the "allowed but not recommended" way of initialising an array goes: I generally go with the recommended method, but it's not crucial. For me you can close this. |
Will close this when #4537 is reviewed and merged. |
FYI: |
Fixed with #4537 |
Hi
I have set up phan - a static code checker -, skipping quite a few messages already - https://github.com/mdeweerd/yii/tree/phan .
You may want to check out the remaining ones. If deemed ok, I'll update the "baseline" to ignore them.
Note: currently this CI is a bit annoying as the phan docker image does not contain git and "apk add git" fails quite often.
The text was updated successfully, but these errors were encountered: