diff options
| author | 2024-09-11 17:14:53 +0200 | |
|---|---|---|
| committer | 2024-09-11 17:14:53 +0200 | |
| commit | dfac9f5813df7d4c7c812c381364c8898333f559 (patch) | |
| tree | 978496d0a8d8b0d6b5dbe836c6829296133b337c /app/Models/View.php | |
| parent | 31c8846791d4b5316fbc790202f79545c012f9c2 (diff) | |
PHPStan booleansInConditions (#6793)
* PHPStan booleansInConditions
* Uniformisation
Diffstat (limited to 'app/Models/View.php')
| -rw-r--r-- | app/Models/View.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Models/View.php b/app/Models/View.php index c586d8632..244379505 100644 --- a/app/Models/View.php +++ b/app/Models/View.php @@ -17,8 +17,8 @@ class FreshRSS_View extends Minz_View { public string $current_user; /** @var iterable<FreshRSS_Entry> */ public $entries; - public FreshRSS_Entry $entry; - public FreshRSS_Feed $feed; + public ?FreshRSS_Entry $entry = null; + public ?FreshRSS_Feed $feed = null; /** @var array<int,FreshRSS_Feed> */ public array $feeds; public int $nbUnreadTags; @@ -30,7 +30,7 @@ class FreshRSS_View extends Minz_View { public array $tagsForEntries; public bool $excludeMutedFeeds; - // Substriptions + // Subscriptions public bool $displaySlider = false; public bool $load_ok; public bool $onlyFeedsWithError; |
