diff --git a/src/Settings.php b/src/Settings.php index f45598e..88d2a48 100755 --- a/src/Settings.php +++ b/src/Settings.php @@ -21,6 +21,7 @@ use Rawilk\Settings\Exceptions\InvalidEnumType; use Rawilk\Settings\Exceptions\InvalidKeyGenerator; use Rawilk\Settings\Support\Context; +use Rawilk\Settings\Support\KeyGenerators\HashKeyGenerator; use Rawilk\Settings\Support\KeyGenerators\Md5KeyGenerator; class Settings @@ -595,7 +596,7 @@ protected function normalizeBulkLookupKey($key): string|Collection|bool { if (is_null($key) && $this->context !== null) { throw_if( - $this->keyGenerator instanceof Md5KeyGenerator, + $this->keyGenerator instanceof Md5KeyGenerator || $this->keyGenerator instanceof HashKeyGenerator, InvalidKeyGenerator::forPartialLookup($this->keyGenerator::class), );