mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-25 06:16:05 +03:00
BUGFIX: Directives args have to be FieldArguments, not FieldDefinitions
This commit is contained in:
parent
b65aa4e657
commit
0262f59a3f
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user