From 70ed7a50f7000037ba5e5c6c50c6642c6428bdd0 Mon Sep 17 00:00:00 2001 From: Randall Wilk Date: Wed, 16 Oct 2024 10:41:41 -0500 Subject: [PATCH] wip --- src/Settings.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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), );