From a3d1c9c64951423f22081b4ca3c8fc020f2ac980 Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 14 Feb 2024 21:00:45 +0200 Subject: [PATCH] fix key name --- src/Manticore.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Manticore.php b/src/Manticore.php index b2b2ee1..9e5d1a0 100644 --- a/src/Manticore.php +++ b/src/Manticore.php @@ -229,16 +229,14 @@ class Manticore ); } - if ($record->get('value_type') === self::TYPE_STRING) + if ($record->get('type_value') === self::TYPE_STRING) { $value = $record->get('value'); } else { - $value = json_decode( - $record->get('value') - ); + $value = $record->get('type_value'); } $records[$record->getId()] =