Skip to content

Commit

Permalink
Make possibility to extend CurlClient (#1088)
Browse files Browse the repository at this point in the history
* Allow extending CurlClient
  • Loading branch information
masterjus authored Mar 22, 2021
1 parent d377a66 commit e3195e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/HttpClient/CurlClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e3195e2

Please sign in to comment.