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)"