From 4d481d60138702a2229bc25594d7ec7b6af8c3eb Mon Sep 17 00:00:00 2001 From: maxpozdeev Date: Mon, 8 Aug 2022 01:21:58 +0300 Subject: [PATCH] declare strict types in markup scripts --- src/includes/markup.commonmark.php | 4 ++-- src/includes/markup.parsedown.php | 2 +- src/includes/markup.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/includes/markup.commonmark.php b/src/includes/markup.commonmark.php index ea60224..2593015 100644 --- a/src/includes/markup.commonmark.php +++ b/src/includes/markup.commonmark.php @@ -1,4 +1,4 @@ -setUrl(\sprintf(get_mttinfo('url'). "?task=%d", $mention->getIdentifier())); if (!$this->toExternal) { $mention->data->append('attributes/class', 'mtt-link-to-task'); - $mention->data->append('attributes/data-target-id', $attrs['target-id'] = $mention->getIdentifier()); + $mention->data->append('attributes/data-target-id', $mention->getIdentifier()); } return $mention; }, diff --git a/src/includes/markup.parsedown.php b/src/includes/markup.parsedown.php index a65bb3b..60e7caf 100644 --- a/src/includes/markup.parsedown.php +++ b/src/includes/markup.parsedown.php @@ -1,4 +1,4 @@ -