example for https://github.com/symfony/symfony/pull/6025