From 5b28a35003a015e29770094932157f13a3f7f5c0 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 9 Jun 2024 20:32:12 +0200 Subject: Pass PHPStan level 9 (#6544) * More PHPStan * More, passing * 4 more files * Update to PHPStan 1.11.4 Needed for fixed bug: Consider numeric-string types after string concat https://github.com/phpstan/phpstan/releases/tag/1.11.4 * Pass PHPStan level 9 Start tracking booleansInConditions * Fix mark as read * Fix doctype * ctype_digit --- app/Models/UserQuery.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'app/Models/UserQuery.php') diff --git a/app/Models/UserQuery.php b/app/Models/UserQuery.php index 73bf52ef8..3058483d3 100644 --- a/app/Models/UserQuery.php +++ b/app/Models/UserQuery.php @@ -41,7 +41,8 @@ class FreshRSS_UserQuery { } /** - * @param array{get?:string,name?:string,order?:string,search?:string,state?:int,url?:string,token?:string,shareRss?:bool,shareOpml?:bool} $query + * @param array{get?:string,name?:string,order?:string,search?:string,state?:int,url?:string,token?:string, + * shareRss?:bool,shareOpml?:bool,description?:string,imageUrl?:string} $query * @param array $categories * @param array $labels */ @@ -61,8 +62,13 @@ class FreshRSS_UserQuery { } if (empty($query['url'])) { if (!empty($query)) { - unset($query['name']); - $this->url = Minz_Url::display(['params' => $query]); + $link = $query; + unset($link['description']); + unset($link['imageUrl']); + unset($link['name']); + unset($link['shareOpml']); + unset($link['shareRss']); + $this->url = Minz_Url::display(['params' => $link]); } } else { $this->url = $query['url']; -- cgit v1.2.3