Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

Commit

Permalink
Fix "NULL returned" for compatibility with symphony 4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
kim_light committed Sep 16, 2020
1 parent 2156870 commit a906466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/SubscribeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ protected function configure(): void
->setHelp('bin/console nats:subscribe your.queue.name [-t timeout]');
}

protected function execute(InputInterface $input, OutputInterface $output): ?int
protected function execute(InputInterface $input, OutputInterface $output): int
{
$queue = $input->getArgument('queue');

Expand Down Expand Up @@ -123,7 +123,7 @@ protected function execute(InputInterface $input, OutputInterface $output): ?int
return 1;
}

return null;
return 0;
}

private function configureSubscription(
Expand Down

0 comments on commit a906466

Please sign in to comment.