Skip to content

Commit 7363343

Browse files
arnovdwklausi
authored andcommitted
fix(DataProducer): Fix PHP 8 compatibility with call_user_func_array() (drupal-graphql#1148)
1 parent 31fc82c commit 7363343

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Plugin/GraphQL/DataProducer/DataProducerPluginBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function resolveField(FieldContext $field) {
4646
$context = $this->getContextValues();
4747
return call_user_func_array(
4848
[$this, 'resolve'],
49-
array_merge($context, [$field])
49+
array_values(array_merge($context, [$field]))
5050
);
5151
}
5252

0 commit comments

Comments
 (0)