-
Notifications
You must be signed in to change notification settings - Fork 118
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
Can't use variables as index in array #31
Comments
harrydeluxe
pushed a commit
that referenced
this issue
Dec 13, 2016
Closed
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With the original Liquid implementation, you are able to set an integer as a variable, and then use it inside bracket notation of an array/object to output the value of that key. This doesn't work in the PHP version:
Example:
B
blank
I've fixed this by modifying the "variable" method in the LiquidContext class:
The text was updated successfully, but these errors were encountered: