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 33cdfd9 commit 7791ca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhpWord/Element/CheckBox.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;

/**
* Check box element
Expand Down Expand Up @@ -56,7 +56,7 @@ public function __construct($name = null, $text = null, $fontStyle = null, $para
*/
public function setName($name)
{
$this->name = String::toUTF8($name);
$this->name = SharedString::toUTF8($name);

return $this;
}
Expand Down

0 comments on commit 7791ca2

Please sign in to comment.