Set --platform for wrapper command only if it's not empty.
This commit is contained in:
parent
959d9b178a
commit
fe06f4c4f9
|
@ -195,7 +195,9 @@ abstract class AbstractCommand extends ContainerAwareCommand
|
|||
$parameters = array_merge($extraParameters, $parameters);
|
||||
|
||||
if ($input->hasOption('platform')) {
|
||||
$parameters['--platform'] = $input->getOption('platform') ?: $this->getPlatform();
|
||||
if ($platform = $input->getOption('platform') ?: $this->getPlatform()) {
|
||||
$parameters['--platform'] = $platform;
|
||||
}
|
||||
}
|
||||
|
||||
$command->setApplication($this->getApplication());
|
||||
|
|
Loading…
Reference in a new issue