1
0
Fork 0
mirror of synced 2024-07-04 14:10:33 +12:00

Cast to array for stdClass case

This commit is contained in:
Jake Barnby 2022-12-08 18:02:35 +13:00
parent ddbd03388e
commit ccc5f7776d
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -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
);