Typehint (intellisense) objects within a twig loop
Personally I use the Symfony Support plugin for PhpStorm, it has auto-complete for twig objects and even repositories.
Use this in your twig:
{# @var foo \FooObject #}
Personally I use the Symfony Support plugin for PhpStorm, it has auto-complete for twig objects and even repositories.
Use this in your twig:
{# @var foo \FooObject #}