-
Notifications
You must be signed in to change notification settings - Fork 709
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
This appears to fix #453, #498, #499 and possibly more issues. #567
This appears to fix #453, #498, #499 and possibly more issues. #567
Conversation
…eed further testing and unit tests.
Another approach would be to improve the regex that tries to determine whether |
Slight improvement to balance out brackets with nested brackets: |
Please note that the issues at handling isset() and empty() calls can get much more complex. |
@uwetews great to hear you are coming back! I was thinking a truly proper solution would require lexing/parsing the parameter to ensure it's a valid php variable instead of using a regex. But my solution posted above seems pretty effective too. |
please note that you can't really get by pattern match accurate result whether see discussion and example here: |
Will need further testing and unit tests.
Using the @-operator will supress errors generated in code wrapped in the
isset()
call. That's not good. Better than what we have now, but not ideal.