Skip to content

Commit 6180ca7

Browse files
authored
fix: symfony console 8 support (#60)
1 parent 4db4783 commit 6180ca7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/testo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ use Testo\Common\Command;
4646
$application = new Application();
4747
$application->setCommandLoader(
4848
new FactoryCommandLoader([
49-
Command\Run::getDefaultName() => static fn() => new Command\Run(),
49+
'run' => static fn() => new Command\Run(),
5050
]),
5151
);
52-
$application->setDefaultCommand(Command\Run::getDefaultName(), false);
52+
$application->setDefaultCommand('run', false);
5353
$application->setVersion(Info::version());
5454
$application->setName(Info::NAME);
5555
$application->run();

0 commit comments

Comments
 (0)