From e56f326cf72e26a05fc164cbcac7855912d954a2 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Thu, 20 Aug 2015 22:44:52 +1000 Subject: [PATCH] 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 --- src/lint/engine/ArcanistLintEngine.php | 2 ++ 1 file changed, 2 insertions(+) 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);