mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42:41 +01:00
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
This commit is contained in:
parent
6dadb6b48c
commit
3f132f4a4e
1 changed files with 1 additions and 8 deletions
|
@ -3176,7 +3176,7 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter {
|
||||||
$argv = array($format->evalStatic()) + array_fill(0, $argc, null);
|
$argv = array($format->evalStatic()) + array_fill(0, $argc, null);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
xsprintf(array($this, 'xsprintfCallback'), null, $argv);
|
xsprintf(null, null, $argv);
|
||||||
} catch (BadFunctionCallException $ex) {
|
} catch (BadFunctionCallException $ex) {
|
||||||
$this->raiseLintAtNode(
|
$this->raiseLintAtNode(
|
||||||
$call,
|
$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() {
|
public function getSuperGlobalNames() {
|
||||||
return array(
|
return array(
|
||||||
'$GLOBALS',
|
'$GLOBALS',
|
||||||
|
|
Loading…
Reference in a new issue