mirror of
https://github.com/dg/dibi.git
synced 2025-08-04 21:28:02 +02:00
Result: does not drop the value if detection fails
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user