1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 22:14:03 +00:00

[breaking fix] Add array return types to StorageDriver interface

This commit is contained in:
Samuel Štancl 2019-04-23 17:09:32 +02:00
parent e1c4dc8934
commit 9bc9b92d8d
2 changed files with 3 additions and 3 deletions

View file

@ -78,7 +78,7 @@ class TenantManager
throw new \Exception("Domain $domain is already occupied by tenant $id.");
}
$tenant = $this->jsonDecodeArrayValues($this->storage->createTenant($domain, \Webpatser\Uuid\Uuid::generate(1, $domain)));
$tenant = $this->jsonDecodeArrayValues($this->storage->createTenant($domain, (string) \Webpatser\Uuid\Uuid::generate(1, $domain)));
$this->database->create($this->getDatabaseName($tenant));
return $tenant;