mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 11:44:04 +00:00
Fix PHPStan issue
This commit is contained in:
parent
977d905d85
commit
b9996881a6
1 changed files with 4 additions and 1 deletions
|
|
@ -21,7 +21,10 @@ class Run extends Command
|
||||||
|
|
||||||
public function handle(): int
|
public function handle(): int
|
||||||
{
|
{
|
||||||
$stringInput = (new StringInput($this->argument('commandname')));
|
/** @var string $commandName */
|
||||||
|
$commandName = $this->argument('commandname');
|
||||||
|
|
||||||
|
$stringInput = (new StringInput($commandName));
|
||||||
|
|
||||||
tenancy()->runForMultiple($this->getTenants(), function ($tenant) use ($stringInput) {
|
tenancy()->runForMultiple($this->getTenants(), function ($tenant) use ($stringInput) {
|
||||||
$this->components->info("Tenant: {$tenant->getTenantKey()}");
|
$this->components->info("Tenant: {$tenant->getTenantKey()}");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue