-
Notifications
You must be signed in to change notification settings - Fork 474
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
Add rule checking arguments to unset (#2605) #25
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really nice :) Also make sure to run vendor/bin/phing
locally before submitting a PR next time, thanks.
I found a few points. Also, I'm not sure if we want to report "possibly undefined variable" - it's perfectly fine to unset something that might (but doesn't have to) exist.
I've removed the "possibly undefined variable" check and fixed your other remarks, thanks for reviewing. |
Hi, I spent a little bit more time to bring the rule over the finish line. Here are the changes from your PR to mine: https://gist.github.com/ondrejmirtes/1f8b2512798df18baa579a39453946f9
|
Thanks! |
Please feel free to do a similar thing for Also, similarly, this isn't detected: https://phpstan.org/r/b56820c1-0e96-45b5-9f98-58dc0fe96d58 We only have VariableCertaintyInIssetRule. |
Thanks for finishing this up! I just realized I kept missing the Travis warnings when running the build locally (on windows), because it stops somewhere along the way. I'll try to figure out why that is. |
Yeah, Windows build isn’t in a great shape but at least it finishes on
Travis.
On Thu, 28 Nov 2019 at 08:27, Leon Gersen ***@***.***> wrote:
Thanks for finishing this up! I just realized I kept missing the Travis
warnings when running the build locally (on windows), because it stops
somewhere along the way. I'll try to figure out why that is.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#25?email_source=notifications&email_token=AAAZTOATKIVNYAJOPJMAJVTQV5XGFA5CNFSM4JRVWDFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFLWASQ#issuecomment-559374410>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAZTOAEJ2YAJZHYIALXCELQV5XGFANCNFSM4JRVWDFA>
.
--
Ondřej Mirtes
|
Adds a rule for checking the arguments to
unset
. Fixes #2605.