]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Minor, squelch a warning about reference variables.
authorepriestley <git@epriestley.com>
Mon, 26 Mar 2012 17:03:59 +0000 (10:03 -0700)
committerepriestley <git@epriestley.com>
Mon, 26 Mar 2012 17:03:59 +0000 (10:03 -0700)
Auditors: vrana

src/workflow/help/ArcanistHelpWorkflow.php

index 2b0cf99c185e9208c031e0b7a6a189771adedd12..1ff79ee8420f027cf75e62540c9ebdd59cfab0ab 100644 (file)
@@ -57,7 +57,7 @@ EOTEXT
 
     $target = null;
     if ($this->getArgument('command')) {
-      $target = reset($this->getArgument('command'));
+      $target = head($this->getArgument('command'));
       if (empty($workflows[$target])) {
         throw new ArcanistUsageException(
           "Unrecognized command '{$target}'. Try 'arc help'.");