From 21bafd9f07480c0d0ae0ab68d7f761442d3f4804 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 6 Feb 2021 20:20:36 +0000 Subject: [PATCH] PluginBase: add void return typehints to onLoad(), onEnable() and onDisable() --- src/plugin/PluginBase.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/plugin/PluginBase.php b/src/plugin/PluginBase.php index 56febce91..02d232534 100644 --- a/src/plugin/PluginBase.php +++ b/src/plugin/PluginBase.php @@ -100,29 +100,23 @@ abstract class PluginBase implements Plugin, CommandExecutor{ /** * Called when the plugin is loaded, before calling onEnable() - * - * @return void */ - protected function onLoad()/* : void /* TODO: uncomment this for next major version */{ + protected function onLoad() : void{ } /** * Called when the plugin is enabled - * - * @return void */ - protected function onEnable()/* : void /* TODO: uncomment this for next major version */{ + protected function onEnable() : void{ } /** * Called when the plugin is disabled * Use this to free open things and finish actions - * - * @return void */ - protected function onDisable()/* : void /* TODO: uncomment this for next major version */{ + protected function onDisable() : void{ }