summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwaffshappen <44290023+waffshappen@users.noreply.github.com>2020-11-19 09:13:53 +0000
committerBenjamin Brahmer <info@b-brahmer.de>2020-11-19 11:23:58 +0100
commit260f0e6caee406f24a9756a2792bf81709d22b80 (patch)
treedf9d57d1a310be3fbde3a057209365a49f51c417
parentbc319b9605a005b32b2f81d0a904290f8ec5c576 (diff)
Return expected Value for Symfony Commands
This fixes a bug when calling allfeeds by hand about not returning anything which makes the generated json unuusuable with errors appended to stdout. TypeError: Return value of "OCA\News\Command\Updater\AllFeeds::execute()" must be of the type int, "null" returned. in apps/mail/vendor/symfony/console/Command/Command.php:261 Returning "no error/0" fixes it.
-rw-r--r--lib/Command/Updater/AllFeeds.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Command/Updater/AllFeeds.php b/lib/Command/Updater/AllFeeds.php
index 0dde6eac4..942b5706d 100644
--- a/lib/Command/Updater/AllFeeds.php
+++ b/lib/Command/Updater/AllFeeds.php
@@ -66,5 +66,6 @@ class AllFeeds extends Command
}
$output->write(json_encode($result));
+ return 0;
}
}