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',