This commit is contained in:
2021-03-26 15:11:36 +08:00
parent 540d42f09b
commit 3a71f6ac24
+1 -1
View File
@@ -86,7 +86,7 @@ trait QueryTrait
* @return $this
* @throws Exception
*/
public function if(string $condition, string $condition1, string|array $condition2): static
public function if(string $condition, string|array|\Closure $condition1, string|array|\Closure $condition2): static
{
if (!is_string($condition1)) {
$condition1 = $this->conditionToString($condition1);