From bec782c47abe5b5d328040ff14707972082dc681 Mon Sep 17 00:00:00 2001 From: Julien Bourdeau Date: Thu, 14 Jun 2018 16:50:00 +0200 Subject: [PATCH] DEBUG DEBUG --- src/AlgoliaSearch/Json.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AlgoliaSearch/Json.php b/src/AlgoliaSearch/Json.php index f86819e32..01f25b2f3 100644 --- a/src/AlgoliaSearch/Json.php +++ b/src/AlgoliaSearch/Json.php @@ -19,6 +19,8 @@ public static function encode($value, $options = 0) public static function decode($json, $assoc = false, $depth = 512) { $value = json_decode($json, $assoc, $depth); + if (null === $value) + print_r($json); self::checkError();