From ccc5f7776d1f2872c9c2b2519c60cd5cd38f0073 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 8 Dec 2022 18:02:35 +1300 Subject: [PATCH] Cast to array for stdClass case --- src/Appwrite/GraphQL/Types/Mapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/GraphQL/Types/Mapper.php b/src/Appwrite/GraphQL/Types/Mapper.php index d6dcc186c3..10758f4220 100644 --- a/src/Appwrite/GraphQL/Types/Mapper.php +++ b/src/Appwrite/GraphQL/Types/Mapper.php @@ -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 );