Skip to content

Commit

Permalink
Fix e2e 019 (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Nov 7, 2022
1 parent 37d4d5f commit 60b8620
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions fixtures/set019-symfony-console/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,23 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

require_once __DIR__ . '/vendor/autoload.php';
require file_exists(__DIR__.'/vendor/scoper-autoload.php')
? __DIR__.'/vendor/scoper-autoload.php'
: __DIR__.'/vendor/autoload.php';

class HelloWorldCommand extends Command
{
protected function configure()
protected function configure(): void
{
$this->setName('hello:world')
->setDescription('Outputs \'Hello World\'');
}

protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$output->writeln('Hello world!');

return self::SUCCESS;
}
}

Expand Down

0 comments on commit 60b8620

Please sign in to comment.