BUGFIX: Directives args have to be FieldArguments, not FieldDefinitions

This commit is contained in:
Torsten Blindert 2018-10-01 20:28:05 +02:00
parent b65aa4e657
commit 0262f59a3f

View File

@ -50,7 +50,7 @@ class Directive
$args = []; $args = [];
foreach ($config['args'] as $name => $arg) { foreach ($config['args'] as $name => $arg) {
if (is_array($arg)) { if (is_array($arg)) {
$args[] = FieldDefinition::create($arg + ['name' => $name]); $args[] = new FieldArgument($arg + ['name' => $name]);
} else { } else {
$args[] = $arg; $args[] = $arg;
} }