From d4bcc9f0ccb2ca1ca468d7a37492106a75e207d5 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 18 Nov 2024 09:52:41 +1300 Subject: [PATCH] API Ensure themelist returns an array --- src/Extensions/LeftAndMainSubsites.php | 2 +- src/Service/ThemeResolver.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Extensions/LeftAndMainSubsites.php b/src/Extensions/LeftAndMainSubsites.php index 08cf0daa..94a1b8a7 100644 --- a/src/Extensions/LeftAndMainSubsites.php +++ b/src/Extensions/LeftAndMainSubsites.php @@ -17,7 +17,7 @@ use SilverStripe\Forms\HiddenField; use SilverStripe\Model\List\ArrayList; use SilverStripe\ORM\DataObject; -use SilverStripe\ORM\SS_List; +use SilverStripe\Model\List\SS_List; use SilverStripe\Security\Member; use SilverStripe\Security\Permission; use SilverStripe\Security\Security; diff --git a/src/Service/ThemeResolver.php b/src/Service/ThemeResolver.php index b91d3bd2..a05d35fd 100644 --- a/src/Service/ThemeResolver.php +++ b/src/Service/ThemeResolver.php @@ -41,7 +41,7 @@ class ThemeResolver * @param Subsite $site * @return array */ - public function getThemeList(Subsite $site) + public function getThemeList(Subsite $site): array { $themes = array_values(SSViewer::get_themes() ?? []); $siteTheme = $site->Theme;