Skip to content

Commit 5cf554d

Browse files
committed
Cast to strings in the config
1 parent 3083d49 commit 5cf554d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Forms/Email.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ protected function addViews()
6565
}
6666

6767
if ($text) {
68-
$this->text((string) $text);
68+
$this->text($text);
6969
}
7070

7171
if ($html) {
72-
$this->view((string) $html);
72+
$this->view($html);
7373
}
7474

7575
return $this;
@@ -128,7 +128,7 @@ protected function parseConfig(array $config)
128128
$data = $this->submission->toArray();
129129

130130
return collect($config)->map(function ($value) use ($data) {
131-
return Parse::template(Parse::env($value), $data);
131+
return (string) Parse::template(Parse::env($value), $data);
132132
});
133133
}
134134
}

0 commit comments

Comments
 (0)