Skip to content

Commit

Permalink
Remove unused migrate parameter (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
nshiro authored Mar 13, 2024
1 parent 43537a3 commit 8612fb7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down Expand Up @@ -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=.*/',
Expand Down

0 comments on commit 8612fb7

Please sign in to comment.