nette/latte

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

survik1 opened this issue · 1 comments

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 commented

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