From e3195e2f9fa38c7f9ba33917398959abd2ba36fa Mon Sep 17 00:00:00 2001 From: Eugene Kirdzei Date: Mon, 22 Mar 2021 19:08:38 +0300 Subject: [PATCH] Make possibility to extend CurlClient (#1088) * Allow extending CurlClient --- lib/HttpClient/CurlClient.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;