Skip to content

Commit 0af2078

Browse files
committed
fix: update type hints for theme parameters
1 parent 5e788cf commit 0af2078

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/Console/Command/Theme/CleanCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private function selectThemesInteractively(OutputInterface $output): ?array
164164
/**
165165
* Display available themes for non-interactive environments
166166
*
167-
* @param array<\Magento\Theme\Model\Theme> $themes
167+
* @param \Magento\Theme\Model\Theme[] $themes
168168
* @return void
169169
*/
170170
private function displayAvailableThemes(array $themes): void
@@ -189,9 +189,9 @@ private function displayAvailableThemes(array $themes): void
189189
/**
190190
* Prompt user to select themes
191191
*
192-
* @param array<string> $options
193-
* @param array<\Magento\Theme\Model\Theme> $themes
194-
* @return array<string>|null
192+
* @param string[] $options
193+
* @param \Magento\Theme\Model\Theme[] $themes
194+
* @return string[]|null
195195
*/
196196
private function promptForThemes(array $options, array $themes): ?array
197197
{

src/Model/ThemeList.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace OpenForgeProject\MageForge\Model;
66

77
use Magento\Framework\View\Design\Theme\ThemeList as MagentoThemeList;
8-
use Magento\Framework\View\Design\ThemeInterface;
8+
use Magento\Theme\Model\Theme;
99

1010
class ThemeList
1111
{
@@ -22,11 +22,11 @@ public function __construct(
2222
/**
2323
* Get all themes
2424
*
25-
* @return array<string, ThemeInterface>
25+
* @return array<string, Theme>
2626
*/
2727
public function getAllThemes(): array
2828
{
29-
/** @var array<string, ThemeInterface> $items */
29+
/** @var array<string, Theme> $items */
3030
$items = $this->magentoThemeList->getItems();
3131
return $items;
3232
}

0 commit comments

Comments
 (0)