see #575 - fix "Warning: Declaration of ...::init($id): bool should be compatabile with ... ::init(string $id): bool"

This commit is contained in:
David Goodwin committed 2021-12-16 20:54:01 +00:00
1 parent e90fd37f06
commit ede15de662
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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");
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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');
}