Fix typehint

This commit is contained in:
Jeremiah VALERIE 2018-08-23 09:11:17 +02:00
parent f7132eb34f
commit 788581ad24
No known key found for this signature in database
GPG Key ID: 668676FD50ADF244

View File

@ -5,7 +5,6 @@ use GraphQL\Executor\Promise\Promise;
use GraphQL\Executor\Promise\PromiseAdapter; use GraphQL\Executor\Promise\PromiseAdapter;
use GraphQL\Utils\Utils; use GraphQL\Utils\Utils;
use React\Promise\Promise as ReactPromise; use React\Promise\Promise as ReactPromise;
use React\Promise\PromiseInterface as ReactPromiseInterface;
class ReactPromiseAdapter implements PromiseAdapter class ReactPromiseAdapter implements PromiseAdapter
{ {
@ -14,7 +13,7 @@ class ReactPromiseAdapter implements PromiseAdapter
*/ */
public function isThenable($value) public function isThenable($value)
{ {
return $value instanceof ReactPromiseInterface; return $value instanceof PromiseAdapter;
} }
/** /**