Update repository type handling in verbose output
This commit is contained in:
parent
943048785d
commit
da8a6fac01
3 changed files with 2 additions and 3 deletions
|
@ -119,7 +119,7 @@
|
|||
throw new InvalidArgumentException(sprintf('The remote source \'%s\' already exists', $source->getName()));
|
||||
}
|
||||
|
||||
Console::outVerbose(sprintf('Adding repository \'%s\' as %s (type: %s)', $source->getHost(), $source->getName(), $source->getType()));
|
||||
Console::outVerbose(sprintf('Adding repository \'%s\' as %s (type: %s)', $source->getHost(), $source->getName(), $source->getType()->value));
|
||||
$this->repositories[] = $source;
|
||||
|
||||
if($update)
|
||||
|
|
|
@ -116,7 +116,6 @@
|
|||
$repository = Repository::fromArray($repository);
|
||||
}
|
||||
|
||||
|
||||
return new self($source, $repository);
|
||||
}
|
||||
}
|
|
@ -224,7 +224,7 @@
|
|||
{
|
||||
return [
|
||||
($bytecode ? Functions::cbc('name') : 'name') => $this->name,
|
||||
($bytecode ? Functions::cbc('type') : 'type') => ($this->type ? null : $this->type->value),
|
||||
($bytecode ? Functions::cbc('type') : 'type') => ($this->type?->value),
|
||||
($bytecode ? Functions::cbc('host') : 'host') => $this->host,
|
||||
($bytecode ? Functions::cbc('ssl') : 'ssl') => $this->ssl
|
||||
];
|
||||
|
|
Loading…
Add table
Reference in a new issue