From bd9fa803f1f0c23face77fa1bc550d1198ce5ad6 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 2 May 2023 14:38:32 +0200 Subject: PHPStan Level 7 complete DAOs (#5354) * PHPStan Level 7 complete DAOs * Finalise PHPStan Level 7 for CategoryDAO * PHPStan Level 7 for Context and Search * Apply suggestions from code review Co-authored-by: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> --- app/Services/ExportService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Services/ExportService.php') diff --git a/app/Services/ExportService.php b/app/Services/ExportService.php index 0d45ba548..d3a3373a5 100644 --- a/app/Services/ExportService.php +++ b/app/Services/ExportService.php @@ -94,7 +94,7 @@ class FreshRSS_Export_Service { */ public function generateFeedEntries(int $feed_id, int $max_number_entries): ?array { $feed = $this->feed_dao->searchById($feed_id); - if (!$feed) { + if ($feed === null) { return null; } @@ -127,7 +127,7 @@ class FreshRSS_Export_Service { * @return array Keys are filenames and values are contents. */ public function generateAllFeedEntries(int $max_number_entries): array { - $feed_ids = $this->feed_dao->listFeedsIds() ?: []; + $feed_ids = $this->feed_dao->listFeedsIds(); $exported_files = []; foreach ($feed_ids as $feed_id) { -- cgit v1.2.3