mirror of
https://github.com/archtechx/tenancy.git
synced 2026-05-06 17:44:04 +00:00
Make validateParameter have void return type
This commit is contained in:
parent
f3f1ab977a
commit
75b74f2e6c
8 changed files with 38 additions and 22 deletions
|
|
@ -21,7 +21,9 @@ class MySQLDatabaseManager extends TenantDatabaseManager
|
|||
|
||||
public function deleteDatabase(TenantWithDatabase $tenant): bool
|
||||
{
|
||||
$database = $this->validateParameter($tenant->database()->getName());
|
||||
$database = $tenant->database()->getName();
|
||||
|
||||
$this->validateParameter($database);
|
||||
|
||||
return $this->connection()->statement("DROP DATABASE `{$database}`");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue