mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
see #575 - fix "Warning: Declaration of ...::init($id): bool should be compatabile with ... ::init(string $id): bool"
This commit is contained in:
1 parent
e90fd37f06
commit
ede15de662
4 files changed
+4
-4
No files matched your search
@@ -35,7 +35,7 @@ class AdminpasswordHandler extends PFAHandler {
|
||||
);
|
||||
}
|
||||
|
||||
public function init($id) :bool {
|
||||
public function init(string $id) :bool {
|
||||
# hardcode to logged in admin
|
||||
if ($this->admin_username == '') {
|
||||
die("No admin logged in");
|
||||
|
||||
@@ -51,7 +51,7 @@ class AliasdomainHandler extends PFAHandler {
|
||||
}
|
||||
}
|
||||
|
||||
public function init($id) : bool {
|
||||
public function init(string $id) : bool {
|
||||
$success = parent::init($id);
|
||||
if ($success) {
|
||||
if (count($this->struct['alias_domain']['options']) == 0 && $this->new) {
|
||||
|
||||
@@ -60,7 +60,7 @@ class MailboxHandler extends PFAHandler {
|
||||
}
|
||||
}
|
||||
|
||||
public function init($id) : bool {
|
||||
public function init(string $id) : bool {
|
||||
if (!parent::init($id)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ class VacationHandler extends PFAHandler {
|
||||
*/
|
||||
protected $domain_field = 'domain';
|
||||
|
||||
public function init($id) : bool {
|
||||
public function init(string $id) : bool {
|
||||
throw new \Exception('VacationHandler is not yet ready to be used with *Handler methods');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user