From 0202c79e56bc49ed3390836a57b49f8c1dadde10 Mon Sep 17 00:00:00 2001 From: Benjamin Brahmer Date: Thu, 9 Jan 2025 20:18:41 +0100 Subject: [PATCH] fix implicitly nullable via default value null Signed-off-by: Benjamin Brahmer --- CHANGELOG.md | 1 + lib/Service/ItemServiceV2.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac167c259..9dcc0246a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ You can also check [on GitHub](https://github.com/nextcloud/news/releases), the ### Changed - add explanations for the individual values in the feed information table - show error message from `opml` import in web-ui +- enable PHP 8.4 ### Fixed - fix proxy port removed if standard port for the protocol (#3027) diff --git a/lib/Service/ItemServiceV2.php b/lib/Service/ItemServiceV2.php index 4f1401c9d..7fbd5e82c 100644 --- a/lib/Service/ItemServiceV2.php +++ b/lib/Service/ItemServiceV2.php @@ -144,7 +144,7 @@ public function read(string $userId, int $id, bool $read): Entity * * @return int|null Amount of deleted items or null if not applicable */ - public function purgeOverThreshold(int $threshold = null, bool $purgeUnread = null): ?int + public function purgeOverThreshold(?int $threshold = null, ?bool $purgeUnread = null): ?int { $threshold = $threshold ?? $this->config->getValueInt( Application::NAME,