改名
This commit is contained in:
@@ -86,8 +86,11 @@ trait QueryTrait
|
||||
* @return $this
|
||||
* @throws Exception
|
||||
*/
|
||||
public function if(string $condition, string|array|\Closure $condition1, string|array|\Closure $condition2): static
|
||||
public function if(string|array $condition, string|array|\Closure $condition1, string|array|\Closure $condition2): static
|
||||
{
|
||||
if (!is_string($condition)) {
|
||||
$condition = $this->conditionToString($condition);
|
||||
}
|
||||
if (!is_string($condition1)) {
|
||||
$condition1 = $this->conditionToString($condition1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user