mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-25 06:16:05 +03:00
Merge pull request #28 from mcg-web/patch-2
setDefaultResolveFn should be static
This commit is contained in:
commit
6fc46beb3f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user