diff --git a/src/Common/Auth/AuthHandler.php b/src/Common/Auth/AuthHandler.php index e5a4e286a..de396cc0e 100644 --- a/src/Common/Auth/AuthHandler.php +++ b/src/Common/Auth/AuthHandler.php @@ -4,7 +4,7 @@ namespace OpenStack\Common\Auth; -use function GuzzleHttp\Psr7\modify_request; +use GuzzleHttp\Psr7\Utils; use Psr\Http\Message\RequestInterface; /** @@ -53,7 +53,7 @@ public function __invoke(RequestInterface $request, array $options) $modify = ['set_headers' => ['X-Auth-Token' => $this->token->getId()]]; - return $fn(modify_request($request, $modify), $options); + return $fn(Utils::modifyRequest($request, $modify), $options); } /**