Reproducing and Solving symfony/symfony#8690

https://github.com/symfony/symfony/issues/8690