diff options
| author | 2023-04-23 11:58:15 +0200 | |
|---|---|---|
| committer | 2023-04-23 11:58:15 +0200 | |
| commit | 115724622fa32e1b7981e378e87ccfb770450cb1 (patch) | |
| tree | 4d7072768076fd76f2f1877757f3e2e395ab2ded /app/Models/ReadingMode.php | |
| parent | 8abe53d879ef188a5c1cc394894ce211fcfa9f92 (diff) | |
PHPStan Level 7 for ten more files (#5327)
* PHPStan Level 7 for nine more files
* Minor syntax
* One more
Diffstat (limited to 'app/Models/ReadingMode.php')
| -rw-r--r-- | app/Models/ReadingMode.php | 14 |
1 files changed, 4 insertions, 10 deletions
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<string,mixed>} */ protected $urlParams; /** * @var bool @@ -28,7 +26,7 @@ class FreshRSS_ReadingMode { /** * ReadingMode constructor. - * @param array<string> $urlParams + * @param array{'c':string,'a':string,'params':array<string,mixed>} $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<string> - */ + /** @return array{'c':string,'a':string,'params':array<string,mixed>} */ public function getUrlParams(): array { return $this->urlParams; } - /** - * @param array<string> $urlParams - */ + /** @param array{'c':string,'a':string,'params':array<string,mixed>} $urlParams */ public function setUrlParams(array $urlParams): FreshRSS_ReadingMode { $this->urlParams = $urlParams; return $this; |
