Skip to content

Commit 556c56f

Browse files
committed
fix: askHidden returns null if you just press enter
1 parent 432e6ef commit 556c56f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Command/Database/AbstractDatabaseCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function determinePassword(InputInterface $input, OutputInterface $out
5959
$password = $this->getStringOption($input, 'password', true);
6060

6161
if (empty($password)) {
62-
$password = $output->askHidden(sprintf('What\'s the "<comment>%s</comment>" password?', $user));
62+
$password = (string) $output->askHidden(sprintf('What\'s the "<comment>%s</comment>" password?', $user));
6363
}
6464

6565
return $password;

0 commit comments

Comments
 (0)