Skip to content

Commit

Permalink
Merge pull request #376 from owncloud/symfony-command-execute-int
Browse files Browse the repository at this point in the history
Always return an int from Symfony Command execute method
  • Loading branch information
phil-davis authored May 18, 2023
2 parents 370703c + c6d8f1c commit eb2ce37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/Command/Generate.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ protected function configure() {
/**
* @param InputInterface $input
* @param OutputInterface $output
* @return int
* @throws \Exception
*/
protected function execute(InputInterface $input, OutputInterface $output) {
protected function execute(InputInterface $input, OutputInterface $output): int {
$user = $input->getOption('user');
$group = $input->getOption('group');
if ($user === null && $group === null) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/RepairNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected function configure() {
* @param OutputInterface $output
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output) {
protected function execute(InputInterface $input, OutputInterface $output): int {
$subject = $input->getArgument('subject');

if (!\in_array($subject, self::$availableSubjects)) {
Expand Down

0 comments on commit eb2ce37

Please sign in to comment.