mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Add a missing (string) cast to repository.query
Summary: The method returns a PhutilURI object, which json_encode() encodes as "{}" since all the properties are private. Test Plan: Examined the output of "repository.query" more carefully: "0" : { "name" : "Phabricator", "callsign" : "P", "vcs" : "git", "uri" : "http:\/\/local.aphront.com:8080\/diffusion\/P\/", "remoteURI" : "git:\/\/github.com\/facebook\/phabricator.git", "tracking" : true }, Reviewers: csilvers, btrahan, vrana, jungejason Reviewed By: csilvers CC: aran Differential Revision: https://secure.phabricator.com/D2402
This commit is contained in:
parent
a122336b3e
commit
db20c74044
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ abstract class ConduitAPI_repository_Method extends ConduitAPIMethod {
|
|||
'callsign' => $repository->getCallsign(),
|
||||
'vcs' => $repository->getVersionControlSystem(),
|
||||
'uri' => PhabricatorEnv::getProductionURI($repository->getURI()),
|
||||
'remoteURI' => $repository->getPublicRemoteURI(),
|
||||
'remoteURI' => (string)$repository->getPublicRemoteURI(),
|
||||
'tracking' => $repository->getDetail('tracking-enabled'),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue