Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit 8ccf0f0

Browse files
committed
Make CommandHelp a collection of strings
Signed-off-by: Yoshi2889 <[email protected]>
1 parent f163719 commit 8ccf0f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Calculator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct(ComponentContainer $container)
4646
$this->setContainer($container);
4747

4848
$commandHelp = new CommandHelp();
49-
$commandHelp->addPage('Calculates the result of a mathematical expression. Usage: calc [expression]');
49+
$commandHelp->append('Calculates the result of a mathematical expression. Usage: calc [expression]');
5050
CommandHandler::fromContainer($container)
5151
->registerCommand('calc', [$this, 'calcCommand'], $commandHelp, 1, -1);
5252

0 commit comments

Comments
 (0)