You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I painfully discovered that loop.last is indeed impossible to access when your looping over a generator (after a couple of hours of painful debug), but I was wondering if there's any possibility for Twig to instead throw an exception when people are accessing to loop.last which is currently "undefined" (obviously) to make the error clearer about WHY is loop.last undefined :)
The text was updated successfully, but these errors were encountered:
Hello,
I painfully discovered that
loop.last
is indeed impossible to access when your looping over a generator (after a couple of hours of painful debug), but I was wondering if there's any possibility for Twig to instead throw an exception when people are accessing toloop.last
which is currently "undefined" (obviously) to make the error clearer about WHY isloop.last
undefined :)The text was updated successfully, but these errors were encountered: