From b9996881a65b6903e4ece67b675963341beeb7eb Mon Sep 17 00:00:00 2001 From: lukinovec Date: Wed, 8 Jan 2025 10:36:38 +0100 Subject: [PATCH] Fix PHPStan issue --- src/Commands/Run.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Commands/Run.php b/src/Commands/Run.php index ca18f164..247f9c2d 100644 --- a/src/Commands/Run.php +++ b/src/Commands/Run.php @@ -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()}");