From db8febadbdfa572ff859d23b63d46676f96a9477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=A0kr=C3=A1=C5=A1ek?= Date: Mon, 30 May 2022 08:34:36 +0200 Subject: [PATCH] fix getLink requiring params for links without arguments (delete-all) --- src/MailPanel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MailPanel.php b/src/MailPanel.php index 78da5c8..35c57c9 100644 --- a/src/MailPanel.php +++ b/src/MailPanel.php @@ -100,7 +100,7 @@ public function getPanel(): string * Run-time link helper * @param array $params */ - public function getLink(string $action, array $params): string + public function getLink(string $action, array $params = []): string { $url = $this->request->getUrl(); $baseUrl = substr($url->getPath(), strrpos($url->getScriptPath(), '/') + 1);