Skip to content

Commit

Permalink
Utilizing SharedString instead of String
Browse files Browse the repository at this point in the history
  • Loading branch information
publiux committed Jan 8, 2016
1 parent e1a8ea8 commit f59fead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhpWord/Element/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

namespace PhpOffice\PhpWord\Element;

use PhpOffice\PhpWord\Shared\String;
use PhpOffice\PhpWord\Shared\SharedString;
use PhpOffice\PhpWord\Style\Font;
use PhpOffice\PhpWord\Style\Paragraph;

Expand Down Expand Up @@ -136,7 +136,7 @@ public function getParagraphStyle()
*/
public function setText($text)
{
$this->text = String::toUTF8($text);
$this->text = SharedString::toUTF8($text);

return $this;
}
Expand Down

0 comments on commit f59fead

Please sign in to comment.