diff options
author | Andrew Dolgov <[email protected]> | 2021-11-15 06:55:05 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-15 06:55:05 +0300 |
commit | 617c94efcd123c0ba3e7ff4b8acb4f0914c4e8cb (patch) | |
tree | ae211f5a755e386c72c5a2c1aef2093f86d13843 | |
parent | 06d4b31d1ae7458a0295d2dfff9c929a4edcd9e8 (diff) |
fix phpstan warnings
-rw-r--r-- | init.php | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1,6 +1,5 @@ <?php class MailTo extends Plugin { - private $host; function about() { return array(null, @@ -9,8 +8,6 @@ class MailTo extends Plugin { } function init($host) { - $this->host = $host; - $host->add_hook($host::HOOK_ARTICLE_BUTTON, $this); $host->add_hook($host::HOOK_HEADLINE_TOOLBAR_SELECT_MENU_ITEM, $this); } @@ -29,7 +26,7 @@ class MailTo extends Plugin { title='".__('Forward by email (mailto:)')."'>mail_outline</i>"; } - function emailArticle() { + function emailArticle() : void { $ids = explode(",", clean($_REQUEST['ids'])); $ids_qmarks = arr_qmarks($ids); |