+ operator doesn't merge. Replaced by array_merge method.
This commit is contained in:
1 parent
2f6dc39ab3
commit
b39f510897
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -722,7 +722,7 @@ class FormBuilder
|
||||
{
|
||||
$selected = $this->getSelectedValue($value, $selected);
|
||||
|
||||
$options = ['value' => $value, 'selected' => $selected] + $attributes;
|
||||
$options = array_merge(['value' => $value, 'selected' => $selected], $attributes);
|
||||
|
||||
return $this->toHtmlString('<option' . $this->html->attributes($options) . '>' . e($display) . '</option>');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user