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

Commit

Permalink
Merge pull request #24 from Zenith-Kim-Light/fix-null-returned
Browse files Browse the repository at this point in the history
Fix "NULL returned" for compatibility with symphony 4.4
  • Loading branch information
mshumakov authored Sep 16, 2020
2 parents 4b76b22 + 6bbc0c9 commit 9e93eaf
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 @@ -97,7 +97,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 @@ -129,7 +129,7 @@ protected function execute(InputInterface $input, OutputInterface $output): ?int
return 1;
}

return null;
return 0;
}

private function configureSubscription(
Expand Down

0 comments on commit 9e93eaf

Please sign in to comment.