Skip to content

Commit

Permalink
Merge pull request #16 from juliangums/patch-1
Browse files Browse the repository at this point in the history
Remove broken facade
  • Loading branch information
199ocero authored May 27, 2024
2 parents 9f3acdd + deb10a9 commit 2f0865f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 23 deletions.
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@
"laravel": {
"providers": [
"JaOcero\\RadioDeck\\RadioDeckServiceProvider"
],
"aliases": {
"RadioDeck": "JaOcero\\RadioDeck\\Facades\\RadioDeck"
}
]
}
},
"minimum-stability": "dev",
Expand Down
16 changes: 0 additions & 16 deletions src/Facades/RadioDeck.php

This file was deleted.

5 changes: 3 additions & 2 deletions src/Forms/Components/RadioDeck.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Filament\Support\Concerns\HasColor;
use Filament\Support\Concerns\HasIcon;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Contracts\Support\Htmlable;
use JaOcero\RadioDeck\Contracts\HasDescriptions;
use JaOcero\RadioDeck\Contracts\HasIcons;
use JaOcero\RadioDeck\Intermediary\IntermediaryRadio;
Expand All @@ -31,9 +32,9 @@ class RadioDeck extends IntermediaryRadio
use HasIconSizes;
use HasPadding;

protected array|Arrayable|string|Closure|null $icons = null;
protected Arrayable|Closure|array|null $icons = null;

protected array|Arrayable|string|Closure $descriptions = [];
protected Arrayable|Closure|array $descriptions = [];

protected string $view = 'radio-deck::forms.components.radio-deck';

Expand Down
2 changes: 1 addition & 1 deletion src/Intermediary/IntermediaryRadio.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class IntermediaryRadio extends Field implements ContractsCanDisableOptions
use HasGridDirection;
use HasOptions;

protected array|string|Arrayable|Closure $descriptions = [];
protected Arrayable|Closure|array $descriptions = [];

/**
* @param array<string | Htmlable> | Arrayable | string | Closure $descriptions
Expand Down

0 comments on commit 2f0865f

Please sign in to comment.