From 115724622fa32e1b7981e378e87ccfb770450cb1 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 23 Apr 2023 11:58:15 +0200 Subject: PHPStan Level 7 for ten more files (#5327) * PHPStan Level 7 for nine more files * Minor syntax * One more --- app/Models/ReadingMode.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'app/Models/ReadingMode.php') diff --git a/app/Models/ReadingMode.php b/app/Models/ReadingMode.php index 6f2fc889c..30ab13aad 100644 --- a/app/Models/ReadingMode.php +++ b/app/Models/ReadingMode.php @@ -17,9 +17,7 @@ class FreshRSS_ReadingMode { * @var string */ protected $title; - /** - * @var string[] - */ + /** @var array{'c':string,'a':string,'params':array} */ protected $urlParams; /** * @var bool @@ -28,7 +26,7 @@ class FreshRSS_ReadingMode { /** * ReadingMode constructor. - * @param array $urlParams + * @param array{'c':string,'a':string,'params':array} $urlParams */ public function __construct(string $id, string $title, array $urlParams, bool $active) { $this->id = $id; @@ -60,16 +58,12 @@ class FreshRSS_ReadingMode { return $this; } - /** - * @return array - */ + /** @return array{'c':string,'a':string,'params':array} */ public function getUrlParams(): array { return $this->urlParams; } - /** - * @param array $urlParams - */ + /** @param array{'c':string,'a':string,'params':array} $urlParams */ public function setUrlParams(array $urlParams): FreshRSS_ReadingMode { $this->urlParams = $urlParams; return $this; -- cgit v1.2.3