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

For + generator + filter does not work #3048

Closed
lyrixx opened this issue Jun 3, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@lyrixx
Copy link
Contributor

commented Jun 3, 2019

As you can see on this fiddle this does not work as expected.

On the fiddle, we did not see the real error.
Actually, a notice is trigerred:

[2019-06-03 16:10:07] request.CRITICAL: Uncaught PHP Exception Twig\Error\RuntimeError: "An exception has been thrown during the rendering of a template ("Object of class Generator could not be converted to int")." at /home/app/Resources/views/account/booking/_booking_list.html.twig line 75 {"exception":"[object] (Twig\Error\RuntimeError(code: 0): An exception has been thrown during the rendering of a template ("Object of class Generator could not be converted to int"). at /home/app/Resources/views/account/booking/_booking_list.html.twig:75, PHPUnit\Framework\Error\Notice(code: 8): Object of class Generator could not be converted to int

@fabpot

This comment has been minimized.

Copy link
Contributor

commented Jun 3, 2019

You missing the parentheses around x..y -> https://twigfiddle.com/kj3jvs/2

@lyrixx

This comment has been minimized.

Copy link
Contributor Author

commented Jun 3, 2019

Ahhh, Thanks.

@lyrixx lyrixx closed this Jun 3, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.