From 260f0e6caee406f24a9756a2792bf81709d22b80 Mon Sep 17 00:00:00 2001 From: waffshappen <44290023+waffshappen@users.noreply.github.com> Date: Thu, 19 Nov 2020 09:13:53 +0000 Subject: 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. --- lib/Command/Updater/AllFeeds.php | 1 + 1 file changed, 1 insertion(+) 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; } } -- cgit v1.2.3