From 8c11d3978a761295bef496b73d33ae5a2fc39f05 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Tue, 10 Dec 2024 12:43:44 +0100 Subject: [PATCH] Reset array keys --- .../src/Framework/Actions/GeneratesTableOfContents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/framework/src/Framework/Actions/GeneratesTableOfContents.php b/packages/framework/src/Framework/Actions/GeneratesTableOfContents.php index f1457712b5a..45ade6461f1 100644 --- a/packages/framework/src/Framework/Actions/GeneratesTableOfContents.php +++ b/packages/framework/src/Framework/Actions/GeneratesTableOfContents.php @@ -130,7 +130,7 @@ protected function buildTableOfContents(array $headings): array } } - return $items; + return array_values($items); } /** @param array{level: int, title: string, identifier: string} $heading */