From de90b089fad64f239fa0101b48cddd223e3e8dad Mon Sep 17 00:00:00 2001 From: digitalpenguin Date: Fri, 8 Oct 2021 11:35:01 +0800 Subject: [PATCH] Remove deprecated cli arguments. --- src/Command/InstallModxCommand.php | 5 ++--- src/Command/InstallPackageCommand.php | 3 +-- src/Gitify.php | 3 ++- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Command/InstallModxCommand.php b/src/Command/InstallModxCommand.php index 29ab787..f571626 100644 --- a/src/Command/InstallModxCommand.php +++ b/src/Command/InstallModxCommand.php @@ -27,12 +27,11 @@ protected function configure() { $this ->setName('modx:install') - ->setAliases(array('install:modx')) - ->setDescription('Downloads, configures and installs a fresh MODX installation. [Note: install:modx will be removed in 1.0, use modx:install instead]') + ->setDescription('Downloads, configures and installs a fresh MODX installation.') ->addArgument( 'version', InputArgument::OPTIONAL, - 'The version of MODX to install, in the format 2.3.2-pl. Leave empty or specify "latest" to install the last stable release.', + 'The version of MODX to install, in the format 2.8.3-pl. Leave empty or specify "latest" to install the last stable release.', 'latest' ) ->addOption( diff --git a/src/Command/InstallPackageCommand.php b/src/Command/InstallPackageCommand.php index 4d31eb1..5cf7c8f 100644 --- a/src/Command/InstallPackageCommand.php +++ b/src/Command/InstallPackageCommand.php @@ -26,8 +26,7 @@ protected function configure() { $this ->setName('package:install') - ->setAliases(array('install:package')) - ->setDescription('Downloads and installs MODX packages. [Note: install:package will be removed in 1.0, use package:install instead]') + ->setDescription('Downloads and installs MODX packages.') ->addArgument( 'package_name', InputArgument::OPTIONAL, diff --git a/src/Gitify.php b/src/Gitify.php index 739ba24..405cb6b 100644 --- a/src/Gitify.php +++ b/src/Gitify.php @@ -3,6 +3,7 @@ namespace modmore\Gitify; use Kbjr\Git\Git; +use Kbjr\Git\GitRepo; use Symfony\Component\Console\Application; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputDefinition; @@ -103,7 +104,7 @@ public static function loadConfig() } /** - * @return \GitRepo|bool + * @return GitRepo|bool */ public function getGitRepository() {