for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php
/*
* This file is part of the OverblogGraphQLBundle package.
*
* (c) Overblog <http://github.com/overblog/>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Overblog\GraphQLBundle\Executor\Promise\Adapter;
use GraphQL\Executor\ExecutionResult;
use GraphQL\Executor\Promise\Adapter\ReactPromiseAdapter as BaseReactPromiseAdapter;
use GraphQL\Executor\Promise\Promise;
use Overblog\GraphQLBundle\Executor\Promise\PromiseAdapterInterface;
class ReactPromiseAdapter extends BaseReactPromiseAdapter implements PromiseAdapterInterface
{
/**
* Synchronously wait when promise completes.
* @param Promise $promise
* @return ExecutionResult
public function wait(Promise $promise)
if (!static::isThenable($promise)) {
return;
}
$resolvedValue = null;
$promise->then(function ($values) use (&$resolvedValue) {
$resolvedValue = $values;
});
return $resolvedValue;