Browse Source

object 原样返回

Bruce Lam 4 năm trước cách đây
mục cha
commit
a97468758d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {