Skip to content

Commit 167fc5f

Browse files
committed
DummyClient should provide methods of HttpClient and HttpAsyncClient
This allow static analysis and code autocomplete in IDEs.
1 parent 9e19001 commit 167fc5f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ClientFactory/DummyClient.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
namespace Http\HttplugBundle\ClientFactory;
44

5+
use Http\Client\HttpAsyncClient;
6+
use Http\Client\HttpClient;
7+
58
/**
69
* This client is used as a placeholder for the dependency injection. It will never be used.
710
*
811
* @author Tobias Nyholm <[email protected]>
912
*/
10-
class DummyClient
13+
interface DummyClient extends HttpClient, HttpAsyncClient
1114
{
1215
}

0 commit comments

Comments
 (0)