Skip to content

Commit bff7a4e

Browse files
committed
use value if label is not provided
1 parent 33e93d1 commit bff7a4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Html/FormBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ public function select(string $name, array $list = [], string|array|null $select
441441
$html = [];
442442

443443
foreach ($list as $value => $display) {
444-
$html[] = $this->getSelectOption($display, $value, $selected);
444+
$html[] = $this->getSelectOption($display ?? $value, $value, $selected);
445445
}
446446

447447
// Once we have all of this HTML, we can join this into a single element after

0 commit comments

Comments
 (0)