From: Joshua Spence Date: Thu, 20 Aug 2015 12:44:52 +0000 (+1000) Subject: Add a call to `assert_instances_of` X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=e56f326cf72e26a05fc164cbcac7855912d954a2;p=arcanist.git Add a call to `assert_instances_of` Summary: This was taken from D13569. Test Plan: `arc lint` still works. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D13943 --- diff --git a/src/lint/engine/ArcanistLintEngine.php b/src/lint/engine/ArcanistLintEngine.php index 720af8ef..8add0a88 100644 --- a/src/lint/engine/ArcanistLintEngine.php +++ b/src/lint/engine/ArcanistLintEngine.php @@ -471,6 +471,8 @@ abstract class ArcanistLintEngine extends Phobject { } private function executeLinters(array $runnable) { + assert_instances_of($runnable, 'ArcanistLinter'); + $all_paths = $this->getPaths(); $path_chunks = array_chunk($all_paths, 32, $preserve_keys = true);