From 7437bbfc73ba228fb5b23bd6f6c1be039cdc8e44 Mon Sep 17 00:00:00 2001 From: Dave M Date: Tue, 6 Oct 2020 15:50:27 +0000 Subject: [PATCH] - Casted type to string for selection matching --- src/Form/UiSelect.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Form/UiSelect.php b/src/Form/UiSelect.php index 4d6bc31..7eca440 100644 --- a/src/Form/UiSelect.php +++ b/src/Form/UiSelect.php @@ -51,11 +51,11 @@ class UiSelect extends UiElement implements Extension { $obj->text($key); foreach($item as $subKey => $subItem) { - $obj->append($this->createOption($subItem, $subKey, $isSelected)); + $obj->append($this->createOption((string) $subItem, $subKey, $isSelected)); } } else { - $obj = $this->createOption($item, $key, $isSelected); + $obj = $this->createOption((string) $item, $key, $isSelected); } $this->append($obj);