1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-04 13:17:58 +02:00

Result: does not drop the value if detection fails

This commit is contained in:
David Grudl
2020-03-26 03:06:22 +01:00
parent e826e3a719
commit 0f69d5d32c

View File

@@ -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);
}
}
}