From b281854258d2db8926881227cdfa0decce777c8e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 15 Nov 2021 06:52:10 +0300 Subject: fix phpstan warnings --- init.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/init.php b/init.php index 0671280..4878eb8 100644 --- a/init.php +++ b/init.php @@ -1,8 +1,6 @@ host = $host; - $host->add_hook($host::HOOK_MAIN_TOOLBAR_BUTTON, $this); } @@ -19,7 +15,7 @@ class Profile_Chooser extends Plugin { return file_get_contents(__DIR__ . "/init.js"); } - function getprofile() { + function getprofile() : void { print json_encode(["profile" => $_SESSION["profile"] ?? 0]); } -- cgit v1.2.3