Skip to content

Commit 1ea0974

Browse files
authored
Fixed type hints.
1 parent 792d53c commit 1ea0974

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/CacheKey.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected function getColumnClauses(array $where) : string
6969
return "-{$where["boolean"]}_{$where["first"]}_{$where["operator"]}_{$where["second"]}";
7070
}
7171

72-
protected function getCurrentBinding(string $type, string $bindingFallback): string
72+
protected function getCurrentBinding(string $type, mixed $bindingFallback = null): mixed
7373
{
7474
return data_get($this->query->bindings, "{$type}.{$this->currentBinding}", $bindingFallback);
7575
}
@@ -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

@@ -282,7 +282,7 @@ protected function getValuesFromBindings(array $where, string $values) : string
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)