mirror of
https://github.com/dg/dibi.git
synced 2025-08-04 13:17:58 +02:00
Result: JSON is always decoded as array [Closes #282]
This commit is contained in:
@@ -504,7 +504,7 @@ class Result implements IDataSource
|
||||
$row[$key] = is_string($value) ? $this->getResultDriver()->unescapeBinary($value) : $value;
|
||||
|
||||
} elseif ($type === Type::JSON) {
|
||||
$row[$key] = json_decode($value);
|
||||
$row[$key] = json_decode($value, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user