Skip to content

Commit

Permalink
Make fetching of command description lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
HypeMC committed Aug 2, 2021
1 parent 901118d commit 46955c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Command/IncrementCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
final class IncrementCommand extends Command
{
protected static $defaultName = 'bizkit:versioning:increment';
protected static $defaultDescription = 'Increments the version using the configured versioning strategy.';

/**
* @var string
Expand Down Expand Up @@ -65,7 +66,7 @@ public function __construct(

protected function configure(): void
{
$this->setDescription('Increments the version using the configured versioning strategy.');
$this->setDescription(self::$defaultDescription);
}

protected function execute(InputInterface $input, OutputInterface $output): int
Expand Down

0 comments on commit 46955c1

Please sign in to comment.