1
0
Fork 0
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:
lukinovec 2025-01-08 10:36:38 +01:00
parent 977d905d85
commit b9996881a6

View file

@ -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()}");