comments are non-null

This commit is contained in:
Shish 2023-02-04 21:08:14 +00:00
parent 689b2b13af
commit 78dbcb8626

View file

@ -95,7 +95,7 @@ class Comment
return $this->owner; return $this->owner;
} }
#[Field(extends: "Post", name: "comments", type: "[Comment]")] #[Field(extends: "Post", name: "comments", type: "[Comment!]!")]
public function get_comments(Image $post): array public function get_comments(Image $post): array
{ {
return CommentList::get_comments($post->id); return CommentList::get_comments($post->id);