From eb037e0d38dfab01ab0abbcab2971ec248804ac6 Mon Sep 17 00:00:00 2001
From: Alan Delval <70354-AlanDelval@users.noreply.drupalcode.org>
Date: Tue, 4 Feb 2025 21:20:16 +0000
Subject: [PATCH] Issue #3487659 by alan delval, abhishek_gupta1, liam morland:
 TypeError: ..\MetadataBubblingUrlGenerator::generateFromRoute(): Argument #2
 ($parameters) must be of type array

---
 src/Toc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Toc.php b/src/Toc.php
index 9810066..126867c 100644
--- a/src/Toc.php
+++ b/src/Toc.php
@@ -340,7 +340,7 @@ class Toc implements TocInterface {
           '#markup' => $header_html,
           '#allowed_tags' => $this->getAllowedTags(),
         ],
-        'url' => Url::fromRoute('<none>', NULL, [
+        'url' => Url::fromRoute('<none>', [], [
             'fragment' => $header_id,
           ]
         ),
-- 
GitLab