title: Unexpected token "name" of value "join" ("end of print statement" expected)
body: <p>I have this piece of code in a Twig template:</p>
  
  <pre><code>{% block body_class %}{{ app.user.roles|default([])join('')|lower }}{% endblock %}
  </code></pre>
  
  <p>But I am getting the error below (same as title) while try to render the template:</p>
  
  <blockquote>
    <p>Unexpected token "name" of value "join" ("end of print statement" expected)</p>
  </blockquote>
  
  <p>I have tried to debug the template in console by running <code>lint:twig</code> and this is the result:</p>
  
  <pre><code>  lint:twig ./app/Resources/
  
    ERROR  in ./app/Resources//views/easy_admin/layout.html.twig (line 4)
        2      {% extends '@EasyAdmin/default/layout.html.twig' %}
        3
    &gt;&gt;  4      {% block body_class %}{{ app.user.roles|default([])join('')|lower }}{% endblock %}
    &gt;&gt; Unexpected token "name" of value "join" ("end of print statement" expected).
        5
  
   [WARNING] 5 Twig files have valid syntax and 1 contain errors.
  </code></pre>
  
  <p>But I am not sure what could be wrong there, can any give me some help?</p>