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/Page.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Digitigrade/Page.php') 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