title: Twig problem with php 7.4 in write variable
body: <p>I using php7.3 on my project and use Twig in this project</p>
  
  <p>After upgrade my php version to 7.4 i have some error in twig rendering.</p>
  
  <p>I set some html class by Twig variable</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;body class='{{global.direction}} preload {{bodyclass}}'&gt;&lt;/body&gt;
  </code></pre>
  
  <p>When using php 7.3 the output of Twig render is:</p>
  
  <pre><code>&lt;body class='ltr preload main'&gt;&lt;/body&gt;
  </code></pre>
  
  <p>And no problem in my source.</p>
  
  <p><strong>But</strong> when my php upgraded to php 7.4 the output was changed!</p>
  
  <pre><code>&lt;body class='ltr preloadmain'&gt;&lt;/body&gt;
  </code></pre>
  
  <p>Twig removed on space before variable and very error was happening in my source :/</p>
  
  <p>Everywhere call variable from Twig, The Twig remove all space before it!</p>
  
  <p>Any solution?</p>
  
  <p>How to fix it?</p>