Skip to content

Commit 5a9e2cb

Browse files
Merge pull request #99 from TheDragonCode/4.x
The `hashing_key` property of `Cache` class was renamed with `useHash`
2 parents 32a7907 + faa66ce commit 5a9e2cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Services/Cache.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Cache
3232

3333
protected mixed $key;
3434

35-
protected bool $hashing_key = true;
35+
protected bool $useHash = true;
3636

3737
protected string $keyHash = '';
3838

@@ -76,7 +76,7 @@ public function withAuth(): Cache
7676

7777
public function hashKey(bool $hash = true): Cache
7878
{
79-
$this->hashing_key = $hash;
79+
$this->useHash = $hash;
8080

8181
return $this;
8282
}
@@ -159,6 +159,6 @@ protected function getKey(): string
159159
array_unshift($key, $this->auth);
160160
}
161161

162-
return $this->key_hash = Key::get(':', $key, $this->hashing_key);
162+
return $this->keyHash = Key::get(':', $key, $this->useHash);
163163
}
164164
}

0 commit comments

Comments
 (0)