diff --git a/src/Executor/Promise/Adapter/ReactPromiseAdapter.php b/src/Executor/Promise/Adapter/ReactPromiseAdapter.php index 747ed42..7f29ecc 100644 --- a/src/Executor/Promise/Adapter/ReactPromiseAdapter.php +++ b/src/Executor/Promise/Adapter/ReactPromiseAdapter.php @@ -5,7 +5,6 @@ use GraphQL\Executor\Promise\Promise; use GraphQL\Executor\Promise\PromiseAdapter; use GraphQL\Utils\Utils; use React\Promise\Promise as ReactPromise; -use React\Promise\PromiseInterface as ReactPromiseInterface; class ReactPromiseAdapter implements PromiseAdapter { @@ -14,7 +13,7 @@ class ReactPromiseAdapter implements PromiseAdapter */ public function isThenable($value) { - return $value instanceof ReactPromiseInterface; + return $value instanceof PromiseAdapter; } /**