From: epriestley Date: Thu, 28 May 2015 23:10:59 +0000 (-0700) Subject: Always return an array from ArcanistWorkflow->loadProjectRepository() X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=cdaa0e32e4735b6f254945eeb19522ee37dd6b0d;p=arcanist.git 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 --- 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) {