修复 implode 函数使用,调换参数,旧的方式在 7.4 后将废除,感谢 @chinayin 的反馈。

This commit is contained in:
F4nniu
2022-04-03 19:05:22 +08:00
parent 7d08e64b4d
commit e0f46fc691

View File

@@ -386,7 +386,7 @@ abstract class Builder
$array[] = $key . ' ' . $exp . ' ' . $this->parseValue($item, $field); $array[] = $key . ' ' . $exp . ' ' . $this->parseValue($item, $field);
} }
$logic = isset($val[2]) ? $val[2] : 'AND'; $logic = isset($val[2]) ? $val[2] : 'AND';
$whereStr .= '(' . implode($array, ' ' . strtoupper($logic) . ' ') . ')'; $whereStr .= '(' . implode(' ' . strtoupper($logic) . ' ', $array) . ')';
} else { } else {
$whereStr .= $key . ' ' . $exp . ' ' . $this->parseValue($value, $field); $whereStr .= $key . ' ' . $exp . ' ' . $this->parseValue($value, $field);
} }