sync with Symfony PR #10640