Skip to content

Commit

Permalink
Fix PHPStan issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lukinovec committed Jan 8, 2025
1 parent 977d905 commit b999688
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Commands/Run.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ class Run extends Command

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) {
$this->components->info("Tenant: {$tenant->getTenantKey()}");
Expand Down

0 comments on commit b999688

Please sign in to comment.