From ac0053cbcae91c06cdff6d50c574f5ba4508a112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 15 Sep 2020 18:24:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Core/Xml.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/System/Core/Xml.php b/System/Core/Xml.php index d0d1549b..88896203 100644 --- a/System/Core/Xml.php +++ b/System/Core/Xml.php @@ -32,17 +32,16 @@ class Xml /** * @param $str - * @return bool + * @return array|bool|object */ - public static function isXml(&$str) + public static function isXml($str) { $xml_parser = xml_parser_create(); if (!xml_parse($xml_parser, $str, true)) { xml_parser_free($xml_parser); return false; } else { - $str = self::toArray($str); - return true; + return self::toArray($str); } }