Skip to content

Commit

Permalink
fix php5.5 compatible problem
Browse files Browse the repository at this point in the history
  • Loading branch information
drpmma committed Dec 10, 2021
1 parent b96c981 commit 9aac73e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MQ/Http/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ public function __construct($endPoint, $accessId,
$this->endpoint = $endPoint;
$guzzleVersion = '';
if (defined('\GuzzleHttp\Client::VERSION')) {
$guzzleVersion = $this->client::VERSION;
$guzzleVersion = \GuzzleHttp\Client::VERSION;
} else {
$guzzleVersion = $this->client::MAJOR_VERSION;
$guzzleVersion = \GuzzleHttp\Client::MAJOR_VERSION;
}
$this->agent = Constants::CLIENT_VERSION . $guzzleVersion . " PHP/" . PHP_VERSION . ")";
}
Expand Down

0 comments on commit 9aac73e

Please sign in to comment.