From 70ba335778fbab3cdf5ae6e0365f40ada0857308 Mon Sep 17 00:00:00 2001 From: Raul Ruiz Date: Fri, 8 Jan 2016 10:28:28 -0500 Subject: [PATCH] Utilizing SharedString instead of String --- src/PhpWord/Writer/Word2007/Element/AbstractElement.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PhpWord/Writer/Word2007/Element/AbstractElement.php b/src/PhpWord/Writer/Word2007/Element/AbstractElement.php index 5654ab7ba9..7c7431e0c8 100644 --- a/src/PhpWord/Writer/Word2007/Element/AbstractElement.php +++ b/src/PhpWord/Writer/Word2007/Element/AbstractElement.php @@ -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; /** @@ -167,6 +167,6 @@ private function writeTextStyle($styleType) */ protected function getText($text) { - return String::controlCharacterPHP2OOXML($text); + return SharedString::controlCharacterPHP2OOXML($text); } }