Skip to content

Commit

Permalink
Helpers.php: cast $value to string (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciki authored Feb 12, 2024
1 parent 425f268 commit 144695c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private static function sanitize(int $type, $value)
{
if ($type === Form::DataText) {
return is_scalar($value)
? Strings::normalizeNewLines($value)
? Strings::normalizeNewLines((string) $value)
: null;

} elseif ($type === Form::DataLine) {
Expand Down

0 comments on commit 144695c

Please sign in to comment.