Skip to content

Commit 923bbb8

Browse files
authored
Fixed parsing of first in the event it was an Expression.
2 parents 57a1b08 + b54f6f0 commit 923bbb8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/CacheKey.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@ protected function getColumnClauses(array $where) : string
8080
if ($where["type"] !== "Column") {
8181
return "";
8282
}
83-
83+
84+
if ($where["first"] instanceof Expression) {
85+
$where["first"] = $this->expressionToString($where["first"]);
86+
}
87+
8488
return "-{$where["boolean"]}_{$where["first"]}_{$where["operator"]}_{$where["second"]}";
8589
}
8690

0 commit comments

Comments
 (0)