Skip to content
This repository was archived by the owner on Oct 26, 2019. It is now read-only.

Commit 36c8155

Browse files
committed
Allow extending client
1 parent 84ccb2c commit 36c8155

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ public static function create($httpClient = null)
3333
$messageFactory = \Http\Discovery\MessageFactoryDiscovery::find();
3434
$serializer = new \Symfony\Component\Serializer\Serializer(\Docker\API\Normalizer\NormalizerFactory::create(), [new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode())]);
3535

36-
return new self($httpClient, $messageFactory, $serializer);
36+
return new static($httpClient, $messageFactory, $serializer);
3737
}
3838
}

src/ClientAsync.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ public static function create($httpClient = null)
3232
}
3333
$serializer = new \Symfony\Component\Serializer\Serializer(\Docker\API\Normalizer\NormalizerFactory::create(), [new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode())]);
3434

35-
return new self($httpClient, $serializer);
35+
return new static($httpClient, $serializer);
3636
}
3737
}

0 commit comments

Comments
 (0)