From: Vincent Vanwaelscappel Date: Fri, 3 Jan 2020 15:23:48 +0000 (+0100) Subject: wip #3303 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=15c0c8fa58c6e22aa10dc78867d020b63f2ceab5;p=cubist_util.git wip #3303 --- diff --git a/src/Cubist/Util/Json.php b/src/Cubist/Util/Json.php index c3622d3..ea50766 100644 --- a/src/Cubist/Util/Json.php +++ b/src/Cubist/Util/Json.php @@ -28,8 +28,8 @@ class Json public static function decode($encodedValue, $objectDecodeType = self::TYPE_OBJECT) { - if ((is_array($encodedValue) && $objectDecodeType == self::TYPE_ARRAY) || - (is_object($encodedValue) && $objectDecodeType == self::TYPE_OBJECT) + if ((is_array($encodedValue) && $objectDecodeType === self::TYPE_ARRAY) || + (is_object($encodedValue) && $objectDecodeType === self::TYPE_OBJECT) ) { return $encodedValue; } else if (is_array($encodedValue) || is_object($encodedValue)) {