Skip to content

Commit

Permalink
Cast $value to string
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl authored Jul 15, 2020
1 parent 51cdf55 commit 375af1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StorageDrivers/Database/DatabaseStorageDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function findBy(string $key, $value): Tenant
$tenant = $this->tenants->findBy($key, $value);

if (! $tenant) {
throw new TenantDoesNotExistException($value, $key);
throw new TenantDoesNotExistException((string) $value, $key);
}

return Tenant::fromStorage($this->tenants->decodeData($tenant))
Expand Down

0 comments on commit 375af1d

Please sign in to comment.