mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-25 14:26:08 +03:00
Fix ReactPromiseInterface
This commit is contained in:
parent
6996e2da2b
commit
761bcfb6f7
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user