Browse Source

Fix type regression filterActions (#5786)

Regression from https://github.com/FreshRSS/FreshRSS/pull/5720
Alexandre Alapetite 2 years ago
parent
commit
5ca9101ce8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Models/Feed.php

+ 2 - 2
app/Models/Feed.php

@@ -61,8 +61,8 @@ class FreshRSS_Feed extends Minz_Model {
 	private string $lockPath = '';
 	private string $lockPath = '';
 	private string $hubUrl = '';
 	private string $hubUrl = '';
 	private string $selfUrl = '';
 	private string $selfUrl = '';
-	/** @var array<FreshRSS_FilterAction> $filterActions */
-	private array $filterActions = [];
+	/** @var array<FreshRSS_FilterAction>|null $filterActions */
+	private ?array $filterActions = null;
 
 
 	public function __construct(string $url, bool $validate = true) {
 	public function __construct(string $url, bool $validate = true) {
 		if ($validate) {
 		if ($validate) {