Skip to content

Commit

Permalink
fix getLink requiring params for links without arguments (delete-all)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach authored May 30, 2022
1 parent 18c4e98 commit db8feba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MailPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function getPanel(): string
* Run-time link helper
* @param array<string, string> $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);
Expand Down

0 comments on commit db8feba

Please sign in to comment.