]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix didAbortWorkflow() without workflow
authorvrana <jakubv@fb.com>
Wed, 24 Oct 2012 19:42:18 +0000 (12:42 -0700)
committervrana <jakubv@fb.com>
Wed, 24 Oct 2012 21:09:02 +0000 (14:09 -0700)
Summary: This is a BC break but it was introduced recently.

Test Plan:
  $ arc unit x

No more:

> Fatal error: Argument 2 passed to ArcanistConfiguration::didAbortWorkflow() must be an instance of ArcanistBaseWorkflow, null given

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D3812

src/configuration/ArcanistConfiguration.php

index f8af6909b535e20475f6947b64bb171fca22af52..ea781630c06ba24f44dbeb6f154d4ef4ed3161c9 100644 (file)
@@ -93,11 +93,7 @@ class ArcanistConfiguration {
     // This is a hook.
   }
 
-  public function didAbortWorkflow(
-    $command,
-    ArcanistBaseWorkflow $workflow,
-    Exception $ex) {
-
+  public function didAbortWorkflow($command, $workflow, Exception $ex) {
     // This is a hook.
   }