]> _ Git - cubist_util.git/commitdiff
#2757
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 12 Jul 2019 15:20:20 +0000 (17:20 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 12 Jul 2019 15:20:20 +0000 (17:20 +0200)
src/Cubist/Util/Json.php

index 79d738a1d5dc98a21bab9d795bf94a192a3cb1d7..f9ba40dc586e71d42797231f8a9e58dd25d5c74e 100644 (file)
@@ -73,10 +73,7 @@ class Json
             }
         });
 
-        if ($objectDecodeType == self::TYPE_OBJECT) {
-            return ObjectUtil::asObject($v);
-        }
-        return $v;
+        return json_decode(json_encode($v), $objectDecodeType);
     }
 
 }
\ No newline at end of file