Skip to content

Commit d8cc8aa

Browse files
committed
fix(ConvertType): Read hostname from arguments and not options
Signed-off-by: provokateurin <[email protected]>
1 parent cf5d55e commit d8cc8aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/Command/Db/ConvertType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ protected function getToDBConnection(InputInterface $input, OutputInterface $out
236236
}
237237

238238
// parse hostname for unix socket
239-
if (preg_match('/^(.+)(:(\d+|[^:]+))?$/', $input->getOption('hostname'), $matches)) {
239+
if (preg_match('/^(.+)(:(\d+|[^:]+))?$/', $input->getArgument('hostname'), $matches)) {
240240
$connectionParams['host'] = $matches[1];
241241
if (isset($matches[3])) {
242242
if (is_numeric($matches[3])) {

0 commit comments

Comments
 (0)