-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Blade "or" syntax not working with associative arrays #16593
Comments
You can just use:
|
@GrahamCampbell He can't since he's on Should we revert that fix and apply it in a future release?
This seems more important... |
the mentioned PR was reverted. |
I have an experimental idea for how to fix this for really reals. It will require significant work though. I'm going to attempt this when I have some free time summer 2017. |
I've been trying to figure out the perfect regex. This is still buggy and needs to be fixed. Lesson learnt : add as many test cases as possible. |
Description:
The blade "or" construct has been broken by e8a9ed1, the regex does not match when using associative arrays.
Steps To Reproduce:
Use
{{ $array['foo'] or 'bar' }}
in any view and get "undefined index 'foo'".Failing test:
The text was updated successfully, but these errors were encountered: