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