R1:db20c74044cb
R1:db20c74044cb
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…
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…
Repository: R1 hydra
Commit Date: May 4 2012