From 8612fb7c32d37150b4a616214c80e04532f16819 Mon Sep 17 00:00:00 2001 From: Noboru Shiroiwa <14008307+nshiro@users.noreply.github.com> Date: Thu, 14 Mar 2024 01:05:26 +0900 Subject: [PATCH] Remove unused `migrate` parameter (#323) --- src/NewCommand.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/NewCommand.php b/src/NewCommand.php index 68d464a..82f23f8 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -183,7 +183,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int [$database, $migrate] = $this->promptForDatabaseOptions($directory, $input); - $this->configureDefaultDatabaseConnection($directory, $database, $name, $migrate); + $this->configureDefaultDatabaseConnection($directory, $database, $name); if ($migrate) { $this->runCommands([ @@ -244,10 +244,9 @@ protected function defaultBranch() * @param string $directory * @param string $database * @param string $name - * @param bool $migrate * @return void */ - protected function configureDefaultDatabaseConnection(string $directory, string $database, string $name, bool $migrate) + protected function configureDefaultDatabaseConnection(string $directory, string $database, string $name) { $this->pregReplaceInFile( '/DB_CONNECTION=.*/',