[feature/twig] Do not assign var by reference

PHPBB3-11598