Skip to content
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

Syntax foreach as list() is no longer working in v3 #342

Closed
survik1 opened this issue Aug 3, 2023 · 1 comment
Closed

Syntax foreach as list() is no longer working in v3 #342

survik1 opened this issue Aug 3, 2023 · 1 comment

Comments

@survik1
Copy link

survik1 commented Aug 3, 2023

Version: 3.0.x

Bug Description

Since v3 syntax foreach as list() is no longer working.

Steps To Reproduce

https://fiddle.nette.org/latte/#e09e2e14ee

Expected Behavior

foreach as list() is supported php construct, Latte should support it as well especially since it worked in 2.x

@mabar
Copy link

mabar commented Aug 3, 2023

As a workaround, use the shorter syntax
https://fiddle.nette.org/latte/#4cc329876f

@dg dg closed this as completed in dbd49d4 Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants