Explorar o código

Fix type regression filterActions (#5786)

Regression from https://github.com/FreshRSS/FreshRSS/pull/5720
Alexandre Alapetite %!s(int64=2) %!d(string=hai) anos
pai
achega
5ca9101ce8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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) {