From 3828dce9795b5cfc5790e40e3b69ace9dce8126c Mon Sep 17 00:00:00 2001 From: Alwin Drenth Date: Wed, 7 Jul 2021 17:23:03 +0200 Subject: [PATCH] Fix type in Items component (Items::$items) (cherry picked from commit 5259fdece3790a960605e712329d5b82b97b98af) --- components/Items.php | 3 +-- updates/version.yaml | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Items.php b/components/Items.php index 0187091..81bbd9a 100644 --- a/components/Items.php +++ b/components/Items.php @@ -5,13 +5,12 @@ namespace Vdlp\RssFetcher\Components; use Cms\Classes\ComponentBase; -use October\Rain\Support\Collection; use Throwable; use Vdlp\RssFetcher\Models\Item; final class Items extends ComponentBase { - public ?Collection $items = null; + public array $items = []; public function componentDetails(): array { diff --git a/updates/version.yaml b/updates/version.yaml index d277ce8..92a8b47 100644 --- a/updates/version.yaml +++ b/updates/version.yaml @@ -22,3 +22,4 @@ 2.2.1: "Fix error when performing a migration rollback" 3.0.0: Drop support for PHP 7.4 (minimum required PHP version 7.4) 3.0.1: "Fix type in Sources component (Sources::$sources)" +3.0.2: "Fix type in Items component (Items::$items)"