From 7e438f4b4e4c4546c84a92c85603cc79e98d2842 Mon Sep 17 00:00:00 2001 From: Ilya Chekalskiy Date: Mon, 18 Feb 2019 16:41:38 +0100 Subject: [PATCH] Fixes #573 (#574) because `\Http\Client\Common\HttpMethodsClientInterface` is an interface, not a class --- src/HttpClient/Plugin/HistoryTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpClient/Plugin/HistoryTrait.php b/src/HttpClient/Plugin/HistoryTrait.php index cc99f42..e1bdd9f 100644 --- a/src/HttpClient/Plugin/HistoryTrait.php +++ b/src/HttpClient/Plugin/HistoryTrait.php @@ -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 */