Skip to content

Commit

Permalink
Fixed deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Berthereau authored and Daniel Berthereau committed Nov 20, 2023
1 parent 2c5116a commit 4f8a1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/src/Form/Element/ArrayTextarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ protected function stringToList($string)
*/
protected function fixEndOfLine($string)
{
return str_replace(["\r\n", "\n\r", "\r"], ["\n", "\n", "\n"], $string);
return str_replace(["\r\n", "\n\r", "\r"], ["\n", "\n", "\n"], (string) $string);
}

/**
Expand Down

0 comments on commit 4f8a1c2

Please sign in to comment.