Skip to content

Commit

Permalink
use instanceof
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Nov 21, 2023
1 parent cf86286 commit 043d94f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Licensing/Outpost.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private function cache()

private function acquireLock(string $key, int $seconds = 10)
{
$cacheSupportsLocking = in_array(LockProvider::class, class_implements($this->cache()->getStore()));
$cacheSupportsLocking = $this->cache()->getStore() instanceof LockProvider;

if (! $cacheSupportsLocking) {
return new class
Expand Down

0 comments on commit 043d94f

Please sign in to comment.