Skip to content

Commit

Permalink
API Ensure themelist returns an array
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 17, 2024
1 parent 1a31282 commit d4bcc9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Extensions/LeftAndMainSubsites.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Service/ThemeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d4bcc9f

Please sign in to comment.