Skip to content

Commit

Permalink
Merge pull request #75 from xendit/fix/get-http-cli
Browse files Browse the repository at this point in the history
fix(getHttpCli): Fix return type to be nullable
  • Loading branch information
stanleynguyen authored May 1, 2020
2 parents b96327a + 507606b commit ab116fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "xendit/xendit-php",
"description": "PHP clients for Xendit API",
"version": "2.4.0",
"version": "2.4.1",
"keywords": [
"xendit"
],
Expand Down
12 changes: 6 additions & 6 deletions src/Xendit.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,22 +107,22 @@ public static function setLibVersion($libVersion = null): void

/**
* Set custom http client
*
*
* @param HttpCLientInterface $client custom http client
*
*
* @return void
*/
public static function setHttpClient(HttpClientInterface $client): void
{
public static function setHttpClient(HttpClientInterface $client): void
{
self::$_httpClient = $client;
}

/**
* Get current http client being used in the package
*
*
* @return HttpClientInterface
*/
public static function getHttpClient(): HttpClientInterface
public static function getHttpClient(): ?HttpClientInterface
{
return self::$_httpClient;
}
Expand Down

0 comments on commit ab116fe

Please sign in to comment.