Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/2843'
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ClientStatic.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ class ClientStatic
*/
protected static function getStaticClient()
{
if (!isset(self::$client)) {
self::$client = new Client();
if (!isset(static::$client)) {
static::$client = new Client();
}
return self::$client;
return static::$client;
}

/**
Expand Down Expand Up @@ -67,7 +67,7 @@ public static function get($url, $query = array(), $headers = array(), $body = n
$request->setBody($body);
}

return self::getStaticClient()->send($request);
return static::getStaticClient()->send($request);
}

/**
Expand Down Expand Up @@ -108,6 +108,6 @@ public static function post($url, $params, $headers = array(), $body = null)
$request->setContent($body);
}

return self::getStaticClient()->send($request);
return static::getStaticClient()->send($request);
}
}

0 comments on commit dad06c3

Please sign in to comment.