diff --git a/RequestWrapper.php b/RequestWrapper.php index 8baf9bf..bd12ee1 100644 --- a/RequestWrapper.php +++ b/RequestWrapper.php @@ -161,7 +161,7 @@ private function applyHeaders(RequestInterface $request) { $headers = [ 'User-Agent' => 'gcloud-php/' . $this->componentVersion, - 'x-goog-api-client' => 'gl-php/' . phpversion() . ' gccl/' . $this->componentVersion, + 'x-goog-api-client' => 'gl-php/' . PHP_VERSION . ' gccl/' . $this->componentVersion, ]; if ($this->shouldSignRequest) {