From 765c75f411473be5d928abd0c300e6f81d536e18 Mon Sep 17 00:00:00 2001 From: Julian Gums Date: Mon, 27 May 2024 19:12:18 +0300 Subject: [PATCH 1/4] allow for strings --- src/Forms/Components/RadioDeck.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Forms/Components/RadioDeck.php b/src/Forms/Components/RadioDeck.php index 9f7fdaa..0ad0292 100644 --- a/src/Forms/Components/RadioDeck.php +++ b/src/Forms/Components/RadioDeck.php @@ -32,9 +32,9 @@ class RadioDeck extends IntermediaryRadio use HasIconSizes; use HasPadding; - protected Arrayable|Closure|array|null $icons = null; + protected Arrayable|Closure|string|null $icons = null; - protected Arrayable|Closure|array $descriptions = []; + protected Arrayable|Closure|string $descriptions = []; protected string $view = 'radio-deck::forms.components.radio-deck'; From 4cb8275fb3d81cce798a38be10eb2f0d9e0c67a3 Mon Sep 17 00:00:00 2001 From: Julian Gums Date: Mon, 27 May 2024 19:14:09 +0300 Subject: [PATCH 2/4] allow strings --- src/Intermediary/IntermediaryRadio.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Intermediary/IntermediaryRadio.php b/src/Intermediary/IntermediaryRadio.php index 9bb0532..0bf120d 100644 --- a/src/Intermediary/IntermediaryRadio.php +++ b/src/Intermediary/IntermediaryRadio.php @@ -23,7 +23,7 @@ class IntermediaryRadio extends Field implements ContractsCanDisableOptions use HasGridDirection; use HasOptions; - protected Arrayable|Closure|array $descriptions = []; + protected Arrayable|Closure|string $descriptions = []; /** * @param array | Arrayable | string | Closure $descriptions From 73609217832a36a475ee09c0d8bfd2733989c555 Mon Sep 17 00:00:00 2001 From: Julian Gums Date: Tue, 28 May 2024 01:31:41 +0300 Subject: [PATCH 3/4] Update IntermediaryRadio.php --- src/Intermediary/IntermediaryRadio.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Intermediary/IntermediaryRadio.php b/src/Intermediary/IntermediaryRadio.php index 0bf120d..76dc7de 100644 --- a/src/Intermediary/IntermediaryRadio.php +++ b/src/Intermediary/IntermediaryRadio.php @@ -23,7 +23,7 @@ class IntermediaryRadio extends Field implements ContractsCanDisableOptions use HasGridDirection; use HasOptions; - protected Arrayable|Closure|string $descriptions = []; + protected array|Arrayable|Closure|string $descriptions = []; /** * @param array | Arrayable | string | Closure $descriptions From 5e0eb53f1979c72ef5d4856b79925c6f44c1448e Mon Sep 17 00:00:00 2001 From: Julian Gums Date: Tue, 28 May 2024 01:32:11 +0300 Subject: [PATCH 4/4] Update RadioDeck.php --- src/Forms/Components/RadioDeck.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Forms/Components/RadioDeck.php b/src/Forms/Components/RadioDeck.php index 0ad0292..5f1bd83 100644 --- a/src/Forms/Components/RadioDeck.php +++ b/src/Forms/Components/RadioDeck.php @@ -32,9 +32,9 @@ class RadioDeck extends IntermediaryRadio use HasIconSizes; use HasPadding; - protected Arrayable|Closure|string|null $icons = null; + protected array|Arrayable|Closure|string|null $icons = null; - protected Arrayable|Closure|string $descriptions = []; + protected array|Arrayable|Closure|string $descriptions = []; protected string $view = 'radio-deck::forms.components.radio-deck';