summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-15 06:56:09 +0300
committerAndrew Dolgov <[email protected]>2021-11-15 06:56:09 +0300
commitdbf2962e8cd67805975597e1c01a10c4cbf74965 (patch)
tree259ba92dc8ac2853f838e79b2c2d9368ec098b9b
parent3f91b9486d047c65ec2c352be68cb1a6f13cd93f (diff)
fix phpstan warnings
-rw-r--r--init.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.php b/init.php
index 9835618..44e64eb 100644
--- a/init.php
+++ b/init.php
@@ -1,7 +1,7 @@
<?php
class Mail extends Plugin {
- /* @var PluginHost $host */
+ /** @var PluginHost $host */
private $host;
function about() {
@@ -26,7 +26,7 @@ class Mail extends Plugin {
return "<div dojoType='dijit.MenuItem' onclick='Plugins.Mail.send()'>".__('Forward by email')."</div>";
}
- function save() {
+ function save() : void {
$addresslist = $_POST["addresslist"];
$this->host->set($this, "addresslist", $addresslist);
@@ -77,7 +77,7 @@ class Mail extends Plugin {
title='".__('Forward by email')."'>mail</i>";
}
- function emailArticle() {
+ function emailArticle() : void {
$ids = explode(",", clean($_REQUEST['ids']));
$ids_qmarks = arr_qmarks($ids);
@@ -190,7 +190,7 @@ class Mail extends Plugin {
<?php
}
- function sendEmail() {
+ function sendEmail() : void {
$reply = array();
/*$mail->AddReplyTo(strip_tags($_REQUEST['from_email']),