diff --git a/src/Psalm/Internal/PluginManager/Command/DisableCommand.php b/src/Psalm/Internal/PluginManager/Command/DisableCommand.php index 1ca8a82b7..2379332f1 100644 --- a/src/Psalm/Internal/PluginManager/Command/DisableCommand.php +++ b/src/Psalm/Internal/PluginManager/Command/DisableCommand.php @@ -45,7 +45,7 @@ class DisableCommand extends Command } /** - * @return null|int + * @return int */ protected function execute(InputInterface $i, OutputInterface $o) { @@ -80,5 +80,7 @@ class DisableCommand extends Command $plugin_list->disable($plugin_class); $io->success('Plugin disabled'); + + return 0; } } diff --git a/src/Psalm/Internal/PluginManager/Command/EnableCommand.php b/src/Psalm/Internal/PluginManager/Command/EnableCommand.php index 9d53fb1ae..56bb908f2 100644 --- a/src/Psalm/Internal/PluginManager/Command/EnableCommand.php +++ b/src/Psalm/Internal/PluginManager/Command/EnableCommand.php @@ -45,7 +45,7 @@ class EnableCommand extends Command } /** - * @return null|int + * @return int */ protected function execute(InputInterface $i, OutputInterface $o) { @@ -80,5 +80,7 @@ class EnableCommand extends Command $plugin_list->enable($plugin_class); $io->success('Plugin enabled'); + + return 0; } } diff --git a/src/Psalm/Internal/PluginManager/Command/ShowCommand.php b/src/Psalm/Internal/PluginManager/Command/ShowCommand.php index d8c036a3d..f8b340432 100644 --- a/src/Psalm/Internal/PluginManager/Command/ShowCommand.php +++ b/src/Psalm/Internal/PluginManager/Command/ShowCommand.php @@ -40,7 +40,7 @@ class ShowCommand extends Command } /** - * @return null|int + * @return int */ protected function execute(InputInterface $i, OutputInterface $o) { @@ -90,5 +90,7 @@ class ShowCommand extends Command } else { $io->note('No plugins available'); } + + return 0; } }