From 2208974c00d33cea59fc01c2c5b361765457822f Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 20 Apr 2023 09:14:58 +0200 Subject: PHPStan Level 7 for FreshRSS_UserQuery (#5319) Follow-up of https://github.com/FreshRSS/FreshRSS/pull/5318 --- app/Models/UserQuery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Models/UserQuery.php') diff --git a/app/Models/UserQuery.php b/app/Models/UserQuery.php index f0d809378..f2301ff26 100644 --- a/app/Models/UserQuery.php +++ b/app/Models/UserQuery.php @@ -34,7 +34,7 @@ class FreshRSS_UserQuery { private $tag_dao; /** - * @param array $query + * @param array{'get'?:string,'name'?:string,'order'?:string,'search'?:string,'state'?:int,'url'?:string} $query */ public function __construct(array $query, FreshRSS_FeedDAO $feed_dao = null, FreshRSS_CategoryDAO $category_dao = null, FreshRSS_TagDAO $tag_dao = null) { $this->category_dao = $category_dao; @@ -70,7 +70,7 @@ class FreshRSS_UserQuery { /** * Convert the current object to an array. * - * @return array + * @return array{'get'?:string,'name'?:string,'order'?:string,'search'?:string,'state'?:int,'url'?:string} */ public function toArray(): array { return array_filter(array( -- cgit v1.2.3