Skip to content

Commit c4ecf99

Browse files
authored
Merge pull request #435 from demyan112rv/chore/create-client-return-typehint
chore: Add ClientInterface return typehint for php-http/httplug >= 2.4
2 parents 7c63871 + e9733a2 commit c4ecf99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ClientFactory/ClientFactory.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace Http\HttplugBundle\ClientFactory;
66

77
use Http\Client\HttpClient;
8+
use Psr\Http\Client\ClientInterface;
89

910
/**
1011
* @author Tobias Nyholm <[email protected]>
@@ -14,7 +15,7 @@ interface ClientFactory
1415
/**
1516
* Input an array of configuration to be able to create a HttpClient.
1617
*
17-
* @return HttpClient
18+
* @return HttpClient|ClientInterface
1819
*/
1920
public function createClient(array $config = []);
2021
}

0 commit comments

Comments
 (0)