From 4f9ed9a0de1c27dd211ec9769d04bbef2a3f4ab8 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 15 Sep 2022 10:22:53 +0200 Subject: [PATCH] declare "analyze" as an alias for "analyse" --- src/voku/PHPDoctor/CliCommand/PhpDoctorCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/voku/PHPDoctor/CliCommand/PhpDoctorCommand.php b/src/voku/PHPDoctor/CliCommand/PhpDoctorCommand.php index d4da1b3..9cfe148 100644 --- a/src/voku/PHPDoctor/CliCommand/PhpDoctorCommand.php +++ b/src/voku/PHPDoctor/CliCommand/PhpDoctorCommand.php @@ -18,6 +18,7 @@ final class PhpDoctorCommand extends Command { public const COMMAND_NAME = 'analyse'; + public const ALIASES = ['analyze']; /** * @var string[] @@ -38,6 +39,7 @@ public function configure(): void { $this ->setName(self::COMMAND_NAME) + ->setAliases(self::ALIASES) ->setDescription('Check PHP files or directories for missing types.') ->setDefinition( new InputDefinition(