Skip to content

Commit

Permalink
Merge pull request #17 from juliangums/patch-2
Browse files Browse the repository at this point in the history
Correct type hint
  • Loading branch information
199ocero authored May 27, 2024
2 parents 4838c7a + 5e0eb53 commit 1341a73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Forms/Components/RadioDeck.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class RadioDeck extends IntermediaryRadio
use HasIconSizes;
use HasPadding;

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

protected Arrayable|Closure|array $descriptions = [];
protected array|Arrayable|Closure|string $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 Arrayable|Closure|array $descriptions = [];
protected array|Arrayable|Closure|string $descriptions = [];

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

0 comments on commit 1341a73

Please sign in to comment.