Skip to content

Commit 493a346

Browse files
committed
fix default dbpass handling
fixes #7
1 parent 408796b commit 493a346

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/Valet_Command.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ class Valet_Command
8787
* ---
8888
*
8989
* [--dbpass=<dbpass>]
90-
* : Set the database user password (MySQL only). Default: ''
90+
* : Set the database user password (MySQL only).
91+
* ---
92+
* Default: ''
93+
* ---
9194
*
9295
* [--dbprefix=<dbprefix>]
9396
* : Set the database table prefix. Default: 'wp_'
@@ -188,7 +191,7 @@ protected function configure_wp()
188191
$this->wp('core config', [], [
189192
'dbname' => $this->args['dbname'] ?: "wp_{$this->site_name}",
190193
'dbuser' => $this->args['dbuser'],
191-
'dbpass' => $this->args['dbpass'],
194+
'dbpass' => isset($this->args['dbpass']) ? $this->args['dbpass'] : '',
192195
'dbprefix' => $this->args['dbprefix'],
193196
]);
194197
}

0 commit comments

Comments
 (0)