Skip to content

Commit

Permalink
should fail
Browse files Browse the repository at this point in the history
  • Loading branch information
dbosen committed Nov 27, 2023
1 parent aba7459 commit 156f327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/thunder_gqls/src/Traits/ResolverHelperTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function fromEntityReferenceRevisions(string $field, $entity = NULL) {
public function addSimpleCallbackFields(string $type, array $fields): void {
foreach ($fields as $field) {
$this->addFieldResolverIfNotExists($type, $field,
$this->builder->callback(fn($arr) => $arr[$field] ?? NULL)
$this->builder->callback(fn($arr) => $arr[$field])
);
}
}
Expand Down

0 comments on commit 156f327

Please sign in to comment.