1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 13:54:04 +00:00

CachedTenantResolver missing cache case crash fix.

This commit is contained in:
rty 2022-11-17 14:16:11 +02:00
parent 1db2f0913f
commit 8d06952324

View file

@ -27,9 +27,8 @@ abstract class CachedTenantResolver implements TenantResolver
$key = $this->getCacheKey(...$args);
if ($this->cache->has($key)) {
$tenant = $this->cache->get($key);
$tenant = $this->cache->has($key) ? $this->cache->get($key) : null;
if ($tenant) {
$this->resolved($tenant, ...$args);
return $tenant;