1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2025-07-04 19:02:25 +03:00

tighten psalm checks

This commit is contained in:
David Goodwin
2019-09-17 20:50:42 +01:00
parent a603d36224
commit 034a50836c
4 changed files with 3 additions and 5 deletions

View File

@ -3,10 +3,9 @@
/**
* Handlers User level alias actions - e.g. add alias, get aliases, update etc.
* @property $username name of alias
* @property $return return of methods
*/
class AliasHandler extends PFAHandler {
protected $db_table = 'alias';
protected $id_field = 'address';
protected $domain_field = 'domain';

View File

@ -49,8 +49,6 @@
<MissingClosureReturnType errorLevel="info" />
<MissingReturnType errorLevel="info" />
<MissingPropertyType errorLevel="info" />
<InvalidDocblock errorLevel="info" />
<MisplacedRequiredParam errorLevel="info" />
<PropertyNotSetInConstructor errorLevel="info" />
<MissingConstructor errorLevel="info" />

View File

@ -20,7 +20,7 @@ class Crypt {
}
/**
* @return true/false boolean
* @return bool
*/
public function crypt($algorithm) {
return true;

View File

@ -58,6 +58,7 @@ class DovecotCrypt extends Crypt {
$this->password = $this->$func($this->plain);
//$this->plain = '';
return true;
}
public function verify($algorithm, $password) {