see also the upgrade notes https://github.com/symfony/symfony/pull/10287/files#diff-0afc15c4204052c4fa96b69005e11bc2R52