diff --git a/lib/HttpClient/CurlClient.php b/lib/HttpClient/CurlClient.php index b82451857..bae042897 100644 --- a/lib/HttpClient/CurlClient.php +++ b/lib/HttpClient/CurlClient.php @@ -26,15 +26,15 @@ class CurlClient implements ClientInterface { - private static $instance; + protected static $instance; public static function instance() { - if (!self::$instance) { - self::$instance = new self(); + if (!static::$instance) { + static::$instance = new static(); } - return self::$instance; + return static::$instance; } protected $defaultOptions;