Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
rawilk committed Oct 16, 2024
1 parent dc0e9e5 commit 70ed7a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),
);

Expand Down

0 comments on commit 70ed7a5

Please sign in to comment.