Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit 1e113b0

Browse files
authored
fix: Symfony 7.3 compatibility of SingleCommand with output (#325)
1 parent a78f8f7 commit 1e113b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use Symfony\Component\Console\Command\Command;
55
use Symfony\Component\Console\Helper\Table;
66
use Symfony\Component\Console\Input\InputArgument;
77
use Symfony\Component\Console\Input\InputInterface;
8-
use Symfony\Component\Console\Output\ConsoleOutput;
8+
use Symfony\Component\Console\Output\OutputInterface;
99
use Symfony\Component\Console\SingleCommandApplication;
1010
use Symfony\Component\Console\Style\SymfonyStyle;
1111
use Symfony\Component\Finder\Finder;
@@ -17,7 +17,7 @@ require_once __DIR__.'/vendor/autoload.php';
1717
$app = (new SingleCommandApplication('LLM Chain Example Runner'))
1818
->setDescription('Runs all LLM Chain examples in folder examples/')
1919
->addArgument('subdirectory', InputArgument::OPTIONAL, 'Subdirectory to run examples from, e.g. "anthropic" or "huggingface".')
20-
->setCode(function (InputInterface $input, ConsoleOutput $output) {
20+
->setCode(function (InputInterface $input, OutputInterface $output) {
2121
$io = new SymfonyStyle($input, $output);
2222
$io->title('LLM Chain Examples');
2323

0 commit comments

Comments
 (0)