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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ClientStatic.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ class ClientStatic
3030
*/
3131
protected static function getStaticClient()
3232
{
33-
if (!isset(self::$client)) {
34-
self::$client = new Client();
33+
if (!isset(static::$client)) {
34+
static::$client = new Client();
3535
}
36-
return self::$client;
36+
return static::$client;
3737
}
3838

3939
/**
@@ -67,7 +67,7 @@ public static function get($url, $query = array(), $headers = array(), $body = n
6767
$request->setBody($body);
6868
}
6969

70-
return self::getStaticClient()->send($request);
70+
return static::getStaticClient()->send($request);
7171
}
7272

7373
/**
@@ -108,6 +108,6 @@ public static function post($url, $params, $headers = array(), $body = null)
108108
$request->setContent($body);
109109
}
110110

111-
return self::getStaticClient()->send($request);
111+
return static::getStaticClient()->send($request);
112112
}
113113
}

0 commit comments

Comments
 (0)