From 3f132f4a4e85c08450568d60f76e6110f16d927d Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Wed, 11 Feb 2015 18:29:12 +1100 Subject: [PATCH] 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 --- src/lint/linter/ArcanistXHPASTLinter.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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',