Update Client.php

fix issue https://github.com/symfony/symfony/issues/9527