Skip to content

Commit 25ce571

Browse files
authored
Fixed parsing of second in where if it is an Expression object.
2 parents 1fe3774 + 9da707a commit 25ce571

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/CacheKey.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ protected function getColumnClauses(array $where) : string
8585
$where["first"] = $this->expressionToString($where["first"]);
8686
}
8787

88+
if ($where["second"] instanceof Expression) {
89+
$where["second"] = $this->expressionToString($where["second"]);
90+
}
91+
8892
return "-{$where["boolean"]}_{$where["first"]}_{$where["operator"]}_{$where["second"]}";
8993
}
9094

0 commit comments

Comments
 (0)