diff --git a/src/applications/notification/client/PhabricatorNotificationClient.php b/src/applications/notification/client/PhabricatorNotificationClient.php index dedbda6d70..fed3ea4ec9 100644 --- a/src/applications/notification/client/PhabricatorNotificationClient.php +++ b/src/applications/notification/client/PhabricatorNotificationClient.php @@ -6,15 +6,14 @@ final class PhabricatorNotificationClient { public static function getServerStatus() { $uri = PhabricatorEnv::getEnvConfig('notification.server-uri'); - $uri = new PhutilURI($uri); - - $uri->setPath('/status/'); + $uri = id(new PhutilURI($uri)) + ->setPath('/status/'); list($body) = id(new HTTPSFuture($uri)) ->setTimeout(3) ->resolvex(); - $status = json_decode($body, true); + $status = phutil_json_decode($body); if (!is_array($status)) { throw new Exception( pht( diff --git a/src/applications/notification/setup/PhabricatorAphlictSetupCheck.php b/src/applications/notification/setup/PhabricatorAphlictSetupCheck.php index ecaa5116c8..91096c8240 100644 --- a/src/applications/notification/setup/PhabricatorAphlictSetupCheck.php +++ b/src/applications/notification/setup/PhabricatorAphlictSetupCheck.php @@ -37,8 +37,8 @@ final class PhabricatorAphlictSetupCheck extends PhabricatorSetupCheck { ->addRelatedPhabricatorConfig('notification.server-uri') ->addCommand( pht( - "(To start the server, run this command.)\n". - "phabricator/ $ ./bin/aphlict start")); + "(To start the server, run this command.)\n%s", + 'phabricator/ $ ./bin/aphlict start')); return; }