From 3ae1fed4f9143a56d5629b6eeab8f8a6b5c57529 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Thu, 14 May 2015 07:09:53 +1000 Subject: [PATCH] Use `__CLASS__` instead of hardcoding class names Summary: Use `__CLASS__` instead of hardcoding class names. Depends on D12804. Test Plan: Eyeball it. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D12805 --- src/lint/ArcanistLintMessage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lint/ArcanistLintMessage.php b/src/lint/ArcanistLintMessage.php index 8996c992..9d2e8911 100644 --- a/src/lint/ArcanistLintMessage.php +++ b/src/lint/ArcanistLintMessage.php @@ -211,7 +211,7 @@ final class ArcanistLintMessage { } public function setDependentMessages(array $messages) { - assert_instances_of($messages, 'ArcanistLintMessage'); + assert_instances_of($messages, __CLASS__); $this->dependentMessages = $messages; return $this; } -- 2.43.0