]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix `xsprintf` callback
authorJoshua Spence <josh@joshuaspence.com>
Wed, 11 Feb 2015 07:29:12 +0000 (18:29 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Wed, 11 Feb 2015 07:29:12 +0000 (18:29 +1100)
Summary: After all that, I forgot to change this back.

Test Plan: Eyeball it.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11735

src/lint/linter/ArcanistXHPASTLinter.php

index 535278d16c49f5bb5e03516f468fc4a8b5f66cf6..f9f19201c0a1500ea3b2982d783fe51e961a1ed3 100644 (file)
@@ -3176,7 +3176,7 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter {
       $argv = array($format->evalStatic()) + array_fill(0, $argc, null);
 
       try {
-        xsprintf(array($this, 'xsprintfCallback'), null, $argv);
+        xsprintf(null, null, $argv);
       } catch (BadFunctionCallException $ex) {
         $this->raiseLintAtNode(
           $call,
@@ -3188,13 +3188,6 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter {
     }
   }
 
-  /**
-   * A stub function to be used as an @{function:xsprintf} callback.
-   *
-   * @return void
-   */
-  public function xsprintfCallback() {}
-
   public function getSuperGlobalNames() {
     return array(
       '$GLOBALS',