From 987293f391c148f9fc15db9536dd924b3e1bd414 Mon Sep 17 00:00:00 2001 From: Bartek Wajda Date: Mon, 13 Mar 2023 12:00:56 +0100 Subject: [PATCH] IBX-5187: Fixed content's field resolving (#133) --- src/GraphQL/Value/Field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GraphQL/Value/Field.php b/src/GraphQL/Value/Field.php index f95c2f40..1cda1eb7 100644 --- a/src/GraphQL/Value/Field.php +++ b/src/GraphQL/Value/Field.php @@ -29,6 +29,6 @@ public function __toString() public static function fromField(?ApiValues\Content\Field $field) { - return new self(get_object_vars($field)); + return $field === null ? $field : new self(get_object_vars($field)); } }