From dfac9f5813df7d4c7c812c381364c8898333f559 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 11 Sep 2024 17:14:53 +0200 Subject: PHPStan booleansInConditions (#6793) * PHPStan booleansInConditions * Uniformisation --- app/Models/View.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/Models/View.php') 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 */ public $entries; - public FreshRSS_Entry $entry; - public FreshRSS_Feed $feed; + public ?FreshRSS_Entry $entry = null; + public ?FreshRSS_Feed $feed = null; /** @var array */ 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; -- cgit v1.2.3