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,