Twig deprecated features

see symfony/symfony#8675