From f04d4cd80f39a86c7f5611ac091fde14721ad545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Wed, 30 Mar 2022 16:31:58 +0200 Subject: [PATCH] constructor doesn't work since Reflection is used, try specifying getDefaultName() instead --- src/Commands/Migrate.php | 8 +++++--- tests/Etc/tmp/queuetest.json | 0 2 files changed, 5 insertions(+), 3 deletions(-) delete mode 100644 tests/Etc/tmp/queuetest.json diff --git a/src/Commands/Migrate.php b/src/Commands/Migrate.php index 10d44ea9..f721281f 100644 --- a/src/Commands/Migrate.php +++ b/src/Commands/Migrate.php @@ -31,14 +31,16 @@ class Migrate extends MigrateCommand */ public function __construct(Migrator $migrator, Dispatcher $dispatcher) { - // Turn 'migrate {-- ...}' into 'tenants:migrate {-- ...}' - $this->signature = 'tenants:' . $this->signature; - parent::__construct($migrator, $dispatcher); $this->specifyParameters(); } + public static function getDefaultName(): ?string + { + return 'tenants:migrate'; + } + /** * Execute the console command. * diff --git a/tests/Etc/tmp/queuetest.json b/tests/Etc/tmp/queuetest.json deleted file mode 100644 index e69de29b..00000000