Merge pull request #28 from mcg-web/patch-2

setDefaultResolveFn should be static
This commit is contained in:
Vladimir Razuvaev 2016-03-12 07:46:21 +00:00
commit 6fc46beb3f

View File

@ -55,7 +55,7 @@ class Executor
* @param $fn
* @throws \Exception
*/
public function setDefaultResolveFn($fn)
public static function setDefaultResolveFn($fn)
{
Utils::invariant(is_callable($fn), 'Expecting callable, but got ' . Utils::getVariableType($fn));
self::$defaultResolveFn = $fn;