diff --git a/src/Dibi/Result.php b/src/Dibi/Result.php index e22182d1..c7a66f74 100644 --- a/src/Dibi/Result.php +++ b/src/Dibi/Result.php @@ -500,6 +500,12 @@ class Result implements IDataSource } else { $row[$key] = json_decode($value, $this->formats[$type] === 'array'); } + + } elseif ($type === null) { + $row[$key] = $value; + + } else { + throw new \RuntimeException('Unexpected type ' . $type); } } }