If we remove the type-hinting here, it should work fine with all Symfony versions.