Make sure null value is turned into an empty string [skip ci]

This commit is contained in:
James Cole
2018-08-02 07:17:18 +02:00
parent f07d8e958f
commit ae85876965

View File

@@ -756,6 +756,7 @@ class ExpandedForm
*/
public function textarea(string $name, $value = null, array $options = null): string
{
$value = $value ?? '';
$label = $this->label($name, $options);
$options = $this->expandOptionArray($name, $label, $options);
$classes = $this->getHolderClasses($name);