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

Commit 312aa49

Browse files
authored
Merge pull request #54 from php-http/patch-3
Using late static binding on a final class makes no sense
2 parents 666cb6b + c5780ce commit 312aa49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class Client implements HttpClient, HttpAsyncClient
2828
public function __construct(ClientInterface $client = null)
2929
{
3030
if (!$client) {
31-
$client = static::buildClient();
31+
$client = self::buildClient();
3232
}
3333

3434
$this->client = $client;
@@ -43,7 +43,7 @@ public function __construct(ClientInterface $client = null)
4343
*/
4444
public static function createWithConfig(array $config)
4545
{
46-
return new self(static::buildClient($config));
46+
return new self(self::buildClient($config));
4747
}
4848

4949
/**

0 commit comments

Comments
 (0)