]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix a couple of warnings raised by HipHop.
authorepriestley <epriestley@phabricator.com>
Sun, 27 Feb 2011 04:53:24 +0000 (20:53 -0800)
committerepriestley <epriestley@phabricator.com>
Sun, 27 Feb 2011 04:54:06 +0000 (20:54 -0800)
Summary:

Test Plan:

Reviewers:

CC:

scripts/phutil_analyzer.php
src/workflow/diff/ArcanistDiffWorkflow.php

index c5dc4ea160f35652ce4dea4b24c7b515639e0c75..e519ae13d92b6a6658685231df7c3b389d2aba06 100755 (executable)
@@ -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);
index 3eb23bb10451fd3b5a249c5772a38cc9d2d693ca..6cb83b8779f205ac3d76f070fd65a67de2e59733 100644 (file)
@@ -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.