Skip to content

Commit

Permalink
Update IconManager.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Jan 31, 2025
1 parent d7fa5ef commit 237e5ee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/support/src/Icons/IconManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@

namespace Filament\Support\Icons;

use BackedEnum;
use Illuminate\Contracts\Support\Htmlable;
use Illuminate\Support\Arr;

class IconManager
{
/**
* @var array<string, string | Htmlable>
* @var array<string, string | BackedEnum | Htmlable>
*/
protected array $icons = [];

/**
* @param array<string, string | Htmlable> $icons
* @param array<string, string | BackedEnum | Htmlable> $icons
*/
public function register(array $icons): void
{
Expand All @@ -26,7 +27,7 @@ public function register(array $icons): void
/**
* @param string|array<string> $alias
*/
public function resolve(string | array $alias): string | Htmlable | null
public function resolve(string | array $alias): string | BackedEnum | Htmlable | null
{
foreach (Arr::wrap($alias) as $alias) {
if (isset($this->icons[$alias])) {
Expand Down

0 comments on commit 237e5ee

Please sign in to comment.