浏览代码

object 原样返回

Bruce Lam 4 年之前
父节点
当前提交
a97468758d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Support/Helper.php

+ 1 - 1
src/Support/Helper.php

@@ -845,7 +845,7 @@ class Helper
     public static function htmlEntityEncode($item)
     {
         if (is_object($item)) {
-            $item = json_decode(json_encode($item), true);
+            return $item;
         }
         if (is_array($item)) {
             array_walk_recursive($item, function (&$value) {