Fix ReactPromiseInterface

This commit is contained in:
Jeremiah VALERIE 2018-08-23 09:21:44 +02:00
parent 6996e2da2b
commit 761bcfb6f7
No known key found for this signature in database
GPG Key ID: 668676FD50ADF244

View File

@ -5,6 +5,7 @@ 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
{
@ -13,7 +14,7 @@ class ReactPromiseAdapter implements PromiseAdapter
*/
public function isThenable($value)
{
return $value instanceof PromiseAdapter;
return $value instanceof ReactPromiseInterface;
}
/**