Skip to content

Commit

Permalink
TASK: only support Closures for callbacks in DefaultFieldResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
johannessteu committed Jan 17, 2022
2 parents cee6ec9 + b687086 commit 9f1f909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Service/DefaultFieldResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static function resolve($source, array $args, $context, ResolveInfo $info
$resolvedProperty = ObjectAccess::getProperty($source, $fieldName);
}

if (is_callable($resolvedProperty)) {
if ($resolvedProperty instanceof \Closure) {
return $resolvedProperty($source, $args, $context, $info);
}

Expand Down

0 comments on commit 9f1f909

Please sign in to comment.