reproduce #9725 in se

symfony/symfony#9725