From a7d36269a192be90e71df28669238a3f7c50a550 Mon Sep 17 00:00:00 2001 From: sumuhire <40686911+sumuhire@users.noreply.github.com> Date: Fri, 3 Jan 2020 16:55:35 +0100 Subject: [PATCH] The spaceless tag is deprecated The spaceless tag is deprecated in Twig 2.7. Use the spaceless filter instead or {% apply spaceless %} (the Twig\Node\SpacelessNode and Twig\TokenParser\SpacelessTokenParser classes are also deprecated). --- Resources/views/captcha.html.twig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Resources/views/captcha.html.twig b/Resources/views/captcha.html.twig index b20148d..836aa7a 100644 --- a/Resources/views/captcha.html.twig +++ b/Resources/views/captcha.html.twig @@ -1,13 +1,13 @@ {% block simple_captcha_widget %} - {% spaceless %} + {% apply spaceless %} {{ captcha_html | raw }} {{ form_widget(form, { 'id': user_input_id, 'value': '' }) }} - {% endspaceless %} + {% endapply %} {% endblock %} {% block captcha_widget %} - {% spaceless %} + {% apply spaceless %} {{ captcha_html | raw }} {{ form_widget(form, { 'id': user_input_id, 'value': '' }) }} - {% endspaceless %} -{% endblock %} \ No newline at end of file + {% endapply %} +{% endblock %}