From f93538ae580432de7932e166efd2f3cbb5f07114 Mon Sep 17 00:00:00 2001 From: jade (winter) Date: Thu, 22 Jan 2026 00:13:48 +0000 Subject: allow page extensions to have no links (default []) --- Digitigrade/Model/Note.php | 2 +- Digitigrade/Page.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Digitigrade') diff --git a/Digitigrade/Model/Note.php b/Digitigrade/Model/Note.php index 6246795..d8f89d0 100644 --- a/Digitigrade/Model/Note.php +++ b/Digitigrade/Model/Note.php @@ -475,4 +475,4 @@ class Note extends PushableModel implements TimelineIncludeable, Notifyable { 'extensions' => $this->extensions ]; } -} \ No newline at end of file +} diff --git a/Digitigrade/Page.php b/Digitigrade/Page.php index 963a27d..5b7102e 100644 --- a/Digitigrade/Page.php +++ b/Digitigrade/Page.php @@ -9,7 +9,7 @@ class Page implements \JsonSerializable { public string $title; public array $content; /** @var PageLink[] */ - public array $links; + public array $links = []; public static function create(string $title, array $content) { $page = new self(); @@ -72,4 +72,4 @@ class Page implements \JsonSerializable { 'links' => $this->links ]; } -} \ No newline at end of file +} -- cgit v1.3