Cast to array for stdClass case
This commit is contained in:
parent
ddbd03388e
commit
ccc5f7776d
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ class Mapper
|
|||
'description' => 'Additional data',
|
||||
'resolve' => static function ($object, $args, $context, $info) {
|
||||
$data = \array_filter(
|
||||
$object,
|
||||
(array)$object,
|
||||
fn($key) => !\str_starts_with($key, '_'),
|
||||
ARRAY_FILTER_USE_KEY
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue