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 695a885 commit 70ba335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhpWord/Writer/Word2007/Element/AbstractElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace PhpOffice\PhpWord\Writer\Word2007\Element;

use PhpOffice\PhpWord\Element\AbstractElement as Element;
use PhpOffice\PhpWord\Shared\String;
use PhpOffice\PhpWord\Shared\SharedString;
use PhpOffice\PhpWord\Shared\XMLWriter;

/**
Expand Down Expand Up @@ -167,6 +167,6 @@ private function writeTextStyle($styleType)
*/
protected function getText($text)
{
return String::controlCharacterPHP2OOXML($text);
return SharedString::controlCharacterPHP2OOXML($text);
}
}

0 comments on commit 70ba335

Please sign in to comment.