diff --git a/composer.json b/composer.json index 6a3f49e..7284afc 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "xendit/xendit-php", "description": "PHP clients for Xendit API", - "version": "2.4.0", + "version": "2.4.1", "keywords": [ "xendit" ], diff --git a/src/Xendit.php b/src/Xendit.php index b3b991c..06894db 100644 --- a/src/Xendit.php +++ b/src/Xendit.php @@ -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; }