From 10e8c28feaf6d858948285a291231f651ef74728 Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Sun, 4 Oct 2020 20:45:33 +0200 Subject: Add migration with foreign keys Closes #829 Signed-off-by: Sean Molenaar --- lib/Service/FeedServiceV2.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/Service/FeedServiceV2.php') diff --git a/lib/Service/FeedServiceV2.php b/lib/Service/FeedServiceV2.php index 2304c3286..4be96ebf8 100644 --- a/lib/Service/FeedServiceV2.php +++ b/lib/Service/FeedServiceV2.php @@ -121,11 +121,11 @@ class FeedServiceV2 extends Service } /** - * @param int $id + * @param int|null $id * * @return Feed[] */ - public function findAllFromFolder(int $id): array + public function findAllFromFolder(?int $id): array { return $this->mapper->findAllFromFolder($id); } @@ -182,7 +182,7 @@ class FeedServiceV2 extends Service * * @param string $userId Feed owner * @param string $feedUrl Feed URL - * @param int $folderId Target folder, defaults to root + * @param int|null $folderId Target folder, defaults to root * @param bool $full_text Scrape the feed for full text * @param string|null $title The feed title * @param string|null $user Basic auth username, if set @@ -196,7 +196,7 @@ class FeedServiceV2 extends Service public function create( string $userId, string $feedUrl, - int $folderId = 0, + ?int $folderId = null, bool $full_text = false, ?string $title = null, ?string $user = null, -- cgit v1.2.3