This commit is contained in:
Yuri Kuznetsov
2023-04-28 16:08:06 +03:00
parent d460805c8b
commit 86c8fe9a83
+3 -3
View File
@@ -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.");