Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Data/TaskDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct(
public string $description,
public string $previewType,
public string $id,
public Note $notes,
public ?Note $notes,
public Collection $references,
public Collection $checklist,
) {
Expand All @@ -36,7 +36,7 @@ public static function fromData(array $data): self
description: Arr::get($data, 'description'),
previewType: Arr::get($data, 'previewType'),
id: Arr::get($data, 'id'),
notes: Note::fromData(Arr::get($data, 'notes')),
notes: Arr::has($data, 'notes') ? Note::fromData(Arr::get($data, 'notes')) : null,
references: $references,
checklist: $checklist
);
Expand Down