From dca2ae60a1c7a7951ee769aefeb19c4576c57aa6 Mon Sep 17 00:00:00 2001 From: wn_ Date: Tue, 12 Nov 2024 03:38:45 +0000 Subject: Remove some PHPStan ignores and make others rule-specific. --- classes/API.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'classes/API.php') diff --git a/classes/API.php b/classes/API.php index d6d622c52..d44a7eaea 100644 --- a/classes/API.php +++ b/classes/API.php @@ -300,10 +300,9 @@ class API extends Handler { } function getArticle(): bool { - $article_ids = explode(',', clean($_REQUEST['article_id'] ?? '')); + $article_ids = array_filter(explode(',', clean($_REQUEST['article_id'] ?? ''))); $sanitize_content = self::_param_to_bool($_REQUEST['sanitize'] ?? true); - // @phpstan-ignore-next-line if (count($article_ids)) { $entries = ORM::for_table('ttrss_entries') ->table_alias('e') -- cgit v1.2.3-54-g00ecf