Skip to content

Commit 70ed7a5

Browse files
committed
wip
1 parent dc0e9e5 commit 70ed7a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Settings.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use Rawilk\Settings\Exceptions\InvalidEnumType;
2222
use Rawilk\Settings\Exceptions\InvalidKeyGenerator;
2323
use Rawilk\Settings\Support\Context;
24+
use Rawilk\Settings\Support\KeyGenerators\HashKeyGenerator;
2425
use Rawilk\Settings\Support\KeyGenerators\Md5KeyGenerator;
2526

2627
class Settings
@@ -595,7 +596,7 @@ protected function normalizeBulkLookupKey($key): string|Collection|bool
595596
{
596597
if (is_null($key) && $this->context !== null) {
597598
throw_if(
598-
$this->keyGenerator instanceof Md5KeyGenerator,
599+
$this->keyGenerator instanceof Md5KeyGenerator || $this->keyGenerator instanceof HashKeyGenerator,
599600
InvalidKeyGenerator::forPartialLookup($this->keyGenerator::class),
600601
);
601602

0 commit comments

Comments
 (0)