From 070e963d1c26879e47eab19a2377e388c2f166c5 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 26 Mar 2012 10:03:59 -0700 Subject: [PATCH] Minor, squelch a warning about reference variables. Auditors: vrana --- src/workflow/help/ArcanistHelpWorkflow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workflow/help/ArcanistHelpWorkflow.php b/src/workflow/help/ArcanistHelpWorkflow.php index 2b0cf99c..1ff79ee8 100644 --- a/src/workflow/help/ArcanistHelpWorkflow.php +++ b/src/workflow/help/ArcanistHelpWorkflow.php @@ -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'.");