]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Add a call to `assert_instances_of`
authorJoshua Spence <josh@freelancer.com>
Thu, 20 Aug 2015 12:44:52 +0000 (22:44 +1000)
committerJoshua Spence <josh@freelancer.com>
Thu, 20 Aug 2015 12:45:31 +0000 (22:45 +1000)
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

index 720af8ef86215247ae8ae2105c46ca1ab5f05353..8add0a88296e2c67a360d7a812064cf9a0238bd3 100644 (file)
@@ -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);