From: epriestley Date: Sun, 27 Feb 2011 04:53:24 +0000 (-0800) Subject: Fix a couple of warnings raised by HipHop. X-Git-Tag: conduit-4~389 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=6b2c8c6bbb47ae2aee4bb915545ffb3f46f03d20;p=arcanist.git Fix a couple of warnings raised by HipHop. Summary: Test Plan: Reviewers: CC: --- diff --git a/scripts/phutil_analyzer.php b/scripts/phutil_analyzer.php index c5dc4ea1..e519ae13 100755 --- a/scripts/phutil_analyzer.php +++ b/scripts/phutil_analyzer.php @@ -198,6 +198,11 @@ foreach (Futures($futures) as $file => $future) { // TODO?: String literal in array literal in call_user_func / // call_user_func_array(). + // TODO: Raise a soft warning for use of an unknown class in: + // - Typehints + // - instanceof + // - catch + $classes = $root->selectDescendantsOfType('n_CLASS_DECLARATION'); foreach ($classes as $class) { $class_name = $class->getChildByIndex(1); diff --git a/src/workflow/diff/ArcanistDiffWorkflow.php b/src/workflow/diff/ArcanistDiffWorkflow.php index 3eb23bb1..6cb83b87 100644 --- a/src/workflow/diff/ArcanistDiffWorkflow.php +++ b/src/workflow/diff/ArcanistDiffWorkflow.php @@ -692,7 +692,7 @@ EOTEXT private function getGitUpdateMessage() { $repository_api = $this->getRepositoryAPI(); - $parser = new ArcanistDiffParser($repository_api); + $parser = new ArcanistDiffParser(); $commit_messages = $repository_api->getGitCommitLog(); $commit_messages = $parser->parseDiff($commit_messages); @@ -710,7 +710,7 @@ EOTEXT $conduit = $this->getConduit(); $repository_api = $this->getRepositoryAPI(); - $parser = new ArcanistDiffParser($repository_api); + $parser = new ArcanistDiffParser(); $commit_messages = $repository_api->getGitCommitLog(); $commit_messages = $parser->parseDiff($commit_messages); @@ -814,7 +814,7 @@ EOTEXT $conduit = $this->getConduit(); $repository_api = $this->getRepositoryAPI(); - $parser = new ArcanistDiffParser($repository_api); + $parser = new ArcanistDiffParser(); $history_messages = $repository_api->getGitHistoryLog(); if (!$history_messages) { // This can occur on the initial commit.