From cdaa0e32e4735b6f254945eeb19522ee37dd6b0d Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 28 May 2015 16:10:59 -0700 Subject: [PATCH] Always return an array from ArcanistWorkflow->loadProjectRepository() Summary: Fixes T8344. Prior to D12971, this always returned `array()`. It may now sometimes return `null`. Switch the behavior to be more similar to the old behavior. Test Plan: Inspection. Reviewers: btrahan, joshuaspence Reviewed By: joshuaspence Subscribers: epriestley Maniphest Tasks: T8344 Differential Revision: https://secure.phabricator.com/D13061 --- src/workflow/ArcanistWorkflow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workflow/ArcanistWorkflow.php b/src/workflow/ArcanistWorkflow.php index f24845d9..bf40a309 100644 --- a/src/workflow/ArcanistWorkflow.php +++ b/src/workflow/ArcanistWorkflow.php @@ -1558,7 +1558,7 @@ abstract class ArcanistWorkflow extends Phobject { final protected function loadProjectRepository() { list($info, $reasons) = $this->loadRepositoryInformation(); - return $info; + return coalesce($info, array()); } final protected function newInteractiveEditor($text) {