From: Joshua Spence Date: Wed, 11 Feb 2015 07:29:12 +0000 (+1100) Subject: Fix `xsprintf` callback X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=3f132f4a4e85c08450568d60f76e6110f16d927d;p=arcanist.git Fix `xsprintf` callback 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 --- diff --git a/src/lint/linter/ArcanistXHPASTLinter.php b/src/lint/linter/ArcanistXHPASTLinter.php index 535278d1..f9f19201 100644 --- a/src/lint/linter/ArcanistXHPASTLinter.php +++ b/src/lint/linter/ArcanistXHPASTLinter.php @@ -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',