Skip to content

Commit

Permalink
Let UsersregistrationMailCommand->execute() return an integer
Browse files Browse the repository at this point in the history
Fixes a deprecation warning.
  • Loading branch information
doobry-systemli committed Nov 6, 2023
1 parent 3999816 commit 5ec5978
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Command/UsersRegistrationMailCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected function configure(): void
*
* @throws \Exception
*/
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$email = $input->getOption('user');
$locale = $input->getOption('locale');
Expand All @@ -50,5 +50,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

$this->welcomeMessageSender->send($user, $locale);

return 0;
}
}

0 comments on commit 5ec5978

Please sign in to comment.