From f2dea87c11447a20f68ed4515b7ef46feeb6bf61 Mon Sep 17 00:00:00 2001 From: pearj Date: Sat, 28 Jul 2012 18:27:52 +1000 Subject: [PATCH] Fix Exception Bad getter call: getURIObject MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After this commit: https://github.com/facebook/phabricator/commit/d9296638cdd4ac98882850ed742adbb08856bef2 I started getting this error: Unhandled Exception ("Exception") Bad getter call: getURIObject It turns out that getURIObject just needed to be getRemoteURIObject and then the problem goes away. --- src/applications/repository/storage/PhabricatorRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/repository/storage/PhabricatorRepository.php b/src/applications/repository/storage/PhabricatorRepository.php index d82ec3b5bc..f8ea5a4e93 100644 --- a/src/applications/repository/storage/PhabricatorRepository.php +++ b/src/applications/repository/storage/PhabricatorRepository.php @@ -411,7 +411,7 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO { * @task uri */ public function getPublicRemoteURI() { - $uri = $this->getURIObject(); + $uri = $this->getRemoteURIObject(); // Make sure we don't leak anything if this repo is using HTTP Basic Auth // with the credentials in the URI or something zany like that.