]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Always return an array from ArcanistWorkflow->loadProjectRepository()
authorepriestley <git@epriestley.com>
Thu, 28 May 2015 23:10:59 +0000 (16:10 -0700)
committerepriestley <git@epriestley.com>
Thu, 28 May 2015 23:10:59 +0000 (16:10 -0700)
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

index f24845d914c792370d3582a232ced44de8ea1de2..bf40a30994b7e38b6782ecd0ba9d89f7082bbb61 100644 (file)
@@ -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) {