mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-04-07 11:17:08 +00:00
Fix typehint
This commit is contained in:
parent
f7132eb34f
commit
788581ad24
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue