Skip to content

Commit 8763c94

Browse files
committed
setDefaultResolveFn should be static
To ease override of $defaultResolveFn the setter should be `static`
1 parent dba93ab commit 8763c94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Executor/Executor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Executor
5555
* @param $fn
5656
* @throws \Exception
5757
*/
58-
public function setDefaultResolveFn($fn)
58+
public static function setDefaultResolveFn($fn)
5959
{
6060
Utils::invariant(is_callable($fn), 'Expecting callable, but got ' . Utils::getVariableType($fn));
6161
self::$defaultResolveFn = $fn;

0 commit comments

Comments
 (0)