diff --git a/src/GraphQL/Traits/ElementTagTrait.php b/src/GraphQL/Traits/ElementTagTrait.php index bb2688f0..2995fa59 100644 --- a/src/GraphQL/Traits/ElementTagTrait.php +++ b/src/GraphQL/Traits/ElementTagTrait.php @@ -70,7 +70,7 @@ protected function getTagsFromInput(array $input) $tags = []; foreach ($input as $tag_input) { if (isset($tag_input['id']) && $tag_input['id']) { - $tag = Tag::getById($tag_input['id']); + $tag = Tag::getById((int)$tag_input['id']); } elseif (isset($tag_input['path']) && $tag_input['path']) { $tag = Tag::getByPath($tag_input['path']); } else {