Quick fix for https://github.com/symfony/symfony/pull/7236