Fabien Potencier

Results 517 comments of Fabien Potencier

Thank you @drjayvee.

Not sure why Github didn't work as expected here. I'm closing but it's merged.

> 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

> I would suggest removing the return type, as there is no reason to restrict it to strings (we could want to cycle over a list of booleans). Agreed >...

@smnandre Do you want to work on a PR?

> > @smnandre the common use case is to use this `cycle` inside the body of a loop, using `loop.index` as position. The cycle function is not the one controlling...

> With `loop.` yep ! And i really like this DX :) > > Maybe this is something to highlight in the doc ? Or even deprecate the cycle function...

Thank you @smnandre.

> @ruudk is working on compiling Twig templates to PHP in such a way that PHPStan can work its magic. If the `assert` tag gets a similar treatment, with properly...

Now that we have the `types` tag, can we close this one?