Twig icon indicating copy to clipboard operation
Twig copied to clipboard

Unify error messages when a filter expects a mapping/sequence

Open fabpot opened this issue 1 year ago • 1 comments

Besides unifying the error messages, I've also removed the mention of \Traversable as this does not help and is an implementation detail (mapping and sequence are Twig terms, Traversable is not).

Or maybe we should introduce the notion of a "iterable"?

fabpot avatar Aug 29 '24 13:08 fabpot

I would suggest using the concept of "iterable" in those error messages

I've just started to add some docs about Twig types. @drjayvee @ruudk

fabpot avatar Aug 29 '24 14:08 fabpot