diff options
author | waffshappen <44290023+waffshappen@users.noreply.github.com> | 2020-11-19 09:13:53 +0000 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2020-11-19 11:23:58 +0100 |
commit | 260f0e6caee406f24a9756a2792bf81709d22b80 (patch) | |
tree | df9d57d1a310be3fbde3a057209365a49f51c417 /lib/Command | |
parent | bc319b9605a005b32b2f81d0a904290f8ec5c576 (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.
Diffstat (limited to 'lib/Command')
-rw-r--r-- | lib/Command/Updater/AllFeeds.php | 1 |
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; } } |