From 4d8ac0060235287397fc14d79384d5cfca5b92b8 Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 29 Dec 2016 08:05:26 -0800 Subject: [PATCH] Add missing "array" typehint to DifferentialCommitMessageParser Summary: See D17058. Test Plan: Ran `arc diff`, which parsed fields as a side effect. Reviewers: chad Reviewed By: chad Differential Revision: https://secure.phabricator.com/D17112 --- .../differential/parser/DifferentialCommitMessageParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/differential/parser/DifferentialCommitMessageParser.php b/src/applications/differential/parser/DifferentialCommitMessageParser.php index 4b2ba80e92..7a1625c67a 100644 --- a/src/applications/differential/parser/DifferentialCommitMessageParser.php +++ b/src/applications/differential/parser/DifferentialCommitMessageParser.php @@ -66,7 +66,7 @@ final class DifferentialCommitMessageParser extends Phobject { /** * @task config */ - public function setCommitMessageFields($fields) { + public function setCommitMessageFields(array $fields) { assert_instances_of($fields, 'DifferentialCommitMessageField'); $fields = mpull($fields, null, 'getCommitMessageFieldKey'); $this->commitMessageFields = $fields;