- Casted type to string for selection matching

This commit is contained in:
Dave M. 2020-10-06 15:50:27 +00:00
parent ff57fed699
commit 7437bbfc73
1 changed files with 2 additions and 2 deletions

View File

@ -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);