diff --git a/fixtures/set019-symfony-console/main.php b/fixtures/set019-symfony-console/main.php index 453d59d3..3b2dc691 100644 --- a/fixtures/set019-symfony-console/main.php +++ b/fixtures/set019-symfony-console/main.php @@ -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; } }