diff --git a/src/ncc/Objects/ProjectConfiguration/UpdateSource/Repository.php b/src/ncc/Objects/ProjectConfiguration/UpdateSource/Repository.php index b74d84d..393517c 100644 --- a/src/ncc/Objects/ProjectConfiguration/UpdateSource/Repository.php +++ b/src/ncc/Objects/ProjectConfiguration/UpdateSource/Repository.php @@ -138,8 +138,7 @@ { return [ ($bytecode ? Functions::cbc('name') : 'name') => $this->name, - // TODO: Review the ? logic here to see if makes sense - ($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 ];