Skip to content

Commit 46955c1

Browse files
committed
Make fetching of command description lazy
1 parent 901118d commit 46955c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Command/IncrementCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
final class IncrementCommand extends Command
2222
{
2323
protected static $defaultName = 'bizkit:versioning:increment';
24+
protected static $defaultDescription = 'Increments the version using the configured versioning strategy.';
2425

2526
/**
2627
* @var string
@@ -65,7 +66,7 @@ public function __construct(
6566

6667
protected function configure(): void
6768
{
68-
$this->setDescription('Increments the version using the configured versioning strategy.');
69+
$this->setDescription(self::$defaultDescription);
6970
}
7071

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

0 commit comments

Comments
 (0)