From e1ee8ba428e4d000090f364533087f013f1ea6bc Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 22 Mar 2017 09:46:45 -0700 Subject: [PATCH] Fix a bad getStatus() call which is fataling during Herald rule evaluation Summary: Hit this while `arc diff`'ing something which is triggering 2+ rules which add reviewers, I think. Test Plan: Dug this out of a production stack trace; will push and `arc diff` again. Reviewers: chad Reviewed By: chad Differential Revision: https://secure.phabricator.com/D17534 --- .../differential/herald/DifferentialReviewersHeraldAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/differential/herald/DifferentialReviewersHeraldAction.php b/src/applications/differential/herald/DifferentialReviewersHeraldAction.php index bf2b5919c8..9537ad13d3 100644 --- a/src/applications/differential/herald/DifferentialReviewersHeraldAction.php +++ b/src/applications/differential/herald/DifferentialReviewersHeraldAction.php @@ -57,7 +57,7 @@ abstract class DifferentialReviewersHeraldAction // If we're applying a stronger status (usually, upgrading a reviewer // into a blocking reviewer), skip this check so we apply the change. $old_strength = DifferentialReviewerStatus::getStatusStrength( - $reviewers[$phid]->getStatus()); + $reviewers[$phid]->getReviewerStatus()); if ($old_strength <= $new_strength) { continue; }