mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-02-06 07:49:24 +03:00
setDefaultResolveFn should be static
To ease override of $defaultResolveFn the setter should be `static`
This commit is contained in:
parent
dba93ab233
commit
8763c94ea3
@ -55,7 +55,7 @@ class Executor
|
|||||||
* @param $fn
|
* @param $fn
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
public function setDefaultResolveFn($fn)
|
public static function setDefaultResolveFn($fn)
|
||||||
{
|
{
|
||||||
Utils::invariant(is_callable($fn), 'Expecting callable, but got ' . Utils::getVariableType($fn));
|
Utils::invariant(is_callable($fn), 'Expecting callable, but got ' . Utils::getVariableType($fn));
|
||||||
self::$defaultResolveFn = $fn;
|
self::$defaultResolveFn = $fn;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user