because `\Http\Client\Common\HttpMethodsClientInterface` is an interface, not a class
This commit is contained in:
Ilya Chekalskiy 2019-02-18 16:41:38 +01:00 committed by Tobias Nyholm
parent 6ff2a713af
commit 7e438f4b4e

View File

@ -18,7 +18,7 @@ use Psr\Http\Message\RequestInterface;
/*
* Below is a some code to make the History plugin compatible with both 1.x and 2.x of php-client/client-common
*/
if (\class_exists(\Http\Client\Common\HttpMethodsClientInterface::class)) {
if (\interface_exists(\Http\Client\Common\HttpMethodsClientInterface::class)) {
/**
* @internal code for php-http/client-common:2.x
*/