diff --git a/src/Type/Definition/Directive.php b/src/Type/Definition/Directive.php index f837db7..b572948 100644 --- a/src/Type/Definition/Directive.php +++ b/src/Type/Definition/Directive.php @@ -50,7 +50,7 @@ class Directive $args = []; foreach ($config['args'] as $name => $arg) { if (is_array($arg)) { - $args[] = FieldDefinition::create($arg + ['name' => $name]); + $args[] = new FieldArgument($arg + ['name' => $name]); } else { $args[] = $arg; }