Skip to content

Commit d6535cd

Browse files
committed
Fix where clause binding access issue
1 parent ae890b3 commit d6535cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CacheKey.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ protected function getValuesFromWhere(array $where) : string
129129

130130
protected function getValuesFromBindings(array $where, string $values) : string
131131
{
132-
if (! $values && ($this->query->bindings["where"] ?? false)) {
132+
if (! $values && ($this->query->bindings["where"][$this->currentBinding] ?? false)) {
133133
$values = $this->query->bindings["where"][$this->currentBinding];
134134
$this->currentBinding++;
135135

0 commit comments

Comments
 (0)