Don't use PHP constant; use constant value instead to support hhvm
parent
8d4879d33d
commit
2bb4084602
|
@ -32,7 +32,10 @@ abstract class AbstractProvider
|
||||||
|
|
||||||
protected $httpClient;
|
protected $httpClient;
|
||||||
|
|
||||||
/** @var int This represents: PHP_QUERY_RFC1738. The default encryption type for the http_build_query setup */
|
/**
|
||||||
|
* @var int This represents: PHP_QUERY_RFC1738, which is the default value for php 5.4
|
||||||
|
* and the default encryption type for the http_build_query setup
|
||||||
|
*/
|
||||||
protected $httpBuildEncType = 1;
|
protected $httpBuildEncType = 1;
|
||||||
|
|
||||||
public function __construct($options = array())
|
public function __construct($options = array())
|
||||||
|
@ -91,7 +94,7 @@ abstract class AbstractProvider
|
||||||
'approval_prompt' => 'auto'
|
'approval_prompt' => 'auto'
|
||||||
);
|
);
|
||||||
|
|
||||||
return $this->urlAuthorize() . '?' . $this->httpBuildQuery($params, '', '&', PHP_QUERY_RFC1738);
|
return $this->urlAuthorize() . '?' . $this->httpBuildQuery($params, '', '&');
|
||||||
}
|
}
|
||||||
|
|
||||||
// @codeCoverageIgnoreStart
|
// @codeCoverageIgnoreStart
|
||||||
|
@ -129,7 +132,7 @@ abstract class AbstractProvider
|
||||||
// @codeCoverageIgnoreStart
|
// @codeCoverageIgnoreStart
|
||||||
// No providers included with this library use get but 3rd parties may
|
// No providers included with this library use get but 3rd parties may
|
||||||
$client = $this->getHttpClient();
|
$client = $this->getHttpClient();
|
||||||
$client->setBaseUrl($this->urlAccessToken() . '?' . $this->httpBuildQuery($requestParams, '', '&', PHP_QUERY_RFC1738));
|
$client->setBaseUrl($this->urlAccessToken() . '?' . $this->httpBuildQuery($requestParams, '', '&'));
|
||||||
$request = $client->send();
|
$request = $client->send();
|
||||||
$response = $request->getBody();
|
$response = $request->getBody();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue