From: epriestley Date: Mon, 26 Mar 2012 17:03:59 +0000 (-0700) Subject: Minor, squelch a warning about reference variables. X-Git-Tag: conduit-4~74 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=070e963d1c26879e47eab19a2377e388c2f166c5;p=arcanist.git Minor, squelch a warning about reference variables. Auditors: vrana --- 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'.");