-
Notifications
You must be signed in to change notification settings - Fork 664
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
Undefined index warnings and notices in ClosureAnalyzer #5255
Labels
Comments
I found these snippets: https://psalm.dev/r/c6cc4713ae<?php
if (rand(0, 1)) {
$b = 321;
}
$a = function () use ($b):int {
return $b;
};
echo $a();
|
@muglug how do you feel about introducing an error handler to convert all notices/warnings/etc into exceptions? |
weirdan
added a commit
to weirdan/psalm
that referenced
this issue
Feb 20, 2021
Merged
I think that's a great idea! Normally a notice pre-empts a fatal error anyway. |
This was referenced Mar 15, 2021
This was referenced Mar 15, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://psalm.dev/r/c6cc4713ae
The text was updated successfully, but these errors were encountered: