소스 검색

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) {