Skip to content

Commit

Permalink
op
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoutianliang committed May 16, 2019
1 parent a2430f5 commit 8d07e37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Shrimp/ShrimpWechat.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public function registerReadAccessTokenCallback(callable $callback)
*/
public function send()
{
$xmlMessage = Support\Xml::simpleXmlElement($this->getCurrentStream());
$xmlMessage = Support\Xml::simple($this->getCurrentStream());
if (empty($xmlMessage)) {
return 'success';
}
Expand Down
4 changes: 2 additions & 2 deletions src/Shrimp/Support/Xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Xml
*/
public static function parse(string $xml)
{
return self::normalize(self::simpleXmlElement($xml));
return self::normalize(self::simple($xml));
}

/**
Expand Down Expand Up @@ -72,7 +72,7 @@ public function addCData($data)
*
* @return SimpleXMLElement
*/
public static function simpleXmlElement(string $inputXml): ?SimpleXMLElement
public static function simple(string $inputXml): ?SimpleXMLElement
{
$backup = libxml_disable_entity_loader(true);
$backup_errors = libxml_use_internal_errors(true);
Expand Down

0 comments on commit 8d07e37

Please sign in to comment.