PluginBase: add void return typehints to onLoad(), onEnable() and onDisable()

This commit is contained in:
Dylan K. Taylor 2021-02-06 20:20:36 +00:00
parent 82bb83211f
commit 21bafd9f07
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -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{
}