We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc0e9e5 commit 70ed7a5Copy full SHA for 70ed7a5
src/Settings.php
@@ -21,6 +21,7 @@
21
use Rawilk\Settings\Exceptions\InvalidEnumType;
22
use Rawilk\Settings\Exceptions\InvalidKeyGenerator;
23
use Rawilk\Settings\Support\Context;
24
+use Rawilk\Settings\Support\KeyGenerators\HashKeyGenerator;
25
use Rawilk\Settings\Support\KeyGenerators\Md5KeyGenerator;
26
27
class Settings
@@ -595,7 +596,7 @@ protected function normalizeBulkLookupKey($key): string|Collection|bool
595
596
{
597
if (is_null($key) && $this->context !== null) {
598
throw_if(
- $this->keyGenerator instanceof Md5KeyGenerator,
599
+ $this->keyGenerator instanceof Md5KeyGenerator || $this->keyGenerator instanceof HashKeyGenerator,
600
InvalidKeyGenerator::forPartialLookup($this->keyGenerator::class),
601
);
602
0 commit comments