Skip to content

Commit ea09bba

Browse files
authored
Fix missing second parameter in other places.
1 parent 1f86320 commit ea09bba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/CacheKey.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ protected function getInAndNotInClauses(array $where) : string
8787

8888
$type = strtolower($where["type"]);
8989
$subquery = $this->getValuesFromWhere($where);
90-
$values = collect($this->getCurrentBinding('where') ?? []);
90+
$values = collect($this->getCurrentBinding('where', []));
9191

9292
if (Str::startsWith($subquery, $values->first())) {
9393
$this->currentBinding += count($where["values"]);
@@ -210,7 +210,7 @@ protected function getRawClauses(array $where) : string
210210

211211
while (count($queryParts) > 1) {
212212
$clause .= "_" . array_shift($queryParts);
213-
$clause .= $this->getCurrentBinding('where');
213+
$clause .= $this->getCurrentBinding("where", "");
214214
$this->currentBinding++;
215215
}
216216

@@ -275,14 +275,14 @@ protected function getValuesFromWhere(array $where) : string
275275
protected function getValuesFromBindings(array $where, string $values) : string
276276
{
277277
$bindingFallback = __CLASS__ . ':UNKNOWN_BINDING';
278-
$currentBinding = $this->getCurrentBinding('where', $bindingFallback);
278+
$currentBinding = $this->getCurrentBinding("where", $bindingFallback);
279279

280280
if ($currentBinding !== $bindingFallback) {
281281
$values = $currentBinding;
282282
$this->currentBinding++;
283283

284284
if ($where["type"] === "between") {
285-
$values .= "_" . $this->getCurrentBinding('where');
285+
$values .= "_" . $this->getCurrentBinding("where", "");
286286
$this->currentBinding++;
287287
}
288288
}

0 commit comments

Comments
 (0)