Skip to content
Snippets Groups Projects
Commit 3d6090e3 authored by Ere Maijala's avatar Ere Maijala
Browse files

Make sure string is a string in the constructor of TranslatableString since it...

Make sure string is a string in the constructor of TranslatableString since it could also be a TranslatableString object and that would break __toString().
parent e87ceffa
No related merge requests found
...@@ -60,7 +60,7 @@ class TranslatableString implements TranslatableStringInterface ...@@ -60,7 +60,7 @@ class TranslatableString implements TranslatableStringInterface
*/ */
public function __construct($string, $displayString) public function __construct($string, $displayString)
{ {
$this->string = $string; $this->string = (string)$string;
$this->displayString = $displayString; $this->displayString = $displayString;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment