From 6b2c8c6bbb47ae2aee4bb915545ffb3f46f03d20 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sat, 26 Feb 2011 20:53:24 -0800 Subject: [PATCH] Fix a couple of warnings raised by HipHop. Summary: Test Plan: Reviewers: CC: --- scripts/phutil_analyzer.php | 5 +++++ src/workflow/diff/ArcanistDiffWorkflow.php | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) 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. -- 2.43.0