We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fe0613 commit 819ec06Copy full SHA for 819ec06
app/Models/Task.php
@@ -18,7 +18,7 @@ class Task extends StatamicModel
18
public function comments(): EntryCollection
19
{
20
if (is_null($this->id())) {
21
- return new EntryCollection();
+ return new EntryCollection;
22
}
23
24
$comments = Entry::query()->where('collection', 'comments')->where('task', 'entry::' . $this->id())->get();
0 commit comments