ref
This commit is contained in:
@@ -51,19 +51,19 @@ class Insert implements Query
|
||||
throw new RuntimeException("Bad or missing 'into' parameter.");
|
||||
}
|
||||
|
||||
$columns = $params['columns'] = $params['columns'] ?? [];
|
||||
$columns = $params['columns'] ?? [];
|
||||
|
||||
if (!is_array($columns)) {
|
||||
throw new RuntimeException("Bad 'columns' parameter.");
|
||||
}
|
||||
|
||||
$values = $params['values'] = $params['values'] ?? [];
|
||||
$values = $params['values'] ?? [];
|
||||
|
||||
if (!is_array($values)) {
|
||||
throw new RuntimeException("Bad 'values' parameter.");
|
||||
}
|
||||
|
||||
$updateSet = $params['updateSet'] = $params['updateSet'] ?? null;
|
||||
$updateSet = $params['updateSet'] ?? null;
|
||||
|
||||
if ($updateSet && !is_array($updateSet)) {
|
||||
throw new RuntimeException("Bad 'updateSet' parameter.");
|
||||
|
||||
Reference in New Issue
Block a user