Skip to content

Commit 21db40e

Browse files
committed
fixed defaultvalue param check
1 parent 2212da0 commit 21db40e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BuilderPart/WhereTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected function whereGeneric(
5050
$columnOrGroup($conditionBuilder);
5151
$this->conditions[] = $conditionBuilder;
5252
}else{
53-
$this->conditions[] = ($value === []) ?
53+
$this->conditions[] = $value instanceof DefaultValue ?
5454
new WhereCondition($isOr, $columnOrGroup, $valueOrOperand) :
5555
new WhereCondition($isOr, $columnOrGroup, $value, $valueOrOperand);
5656
}

0 commit comments

Comments
 (0)