Просмотр исходного кода

Fix type regression filterActions (#5786)

Regression from https://github.com/FreshRSS/FreshRSS/pull/5720
Alexandre Alapetite 2 лет назад
Родитель
Сommit
5ca9101ce8
1 измененных файлов с 2 добавлено и 2 удалено
  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 $hubUrl = '';
 	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) {
 		if ($validate) {