diff --git a/src/lint/linter/xhpast/rules/ArcanistDeprecationXHPASTLinterRule.php b/src/lint/linter/xhpast/rules/ArcanistDeprecationXHPASTLinterRule.php --- a/src/lint/linter/xhpast/rules/ArcanistDeprecationXHPASTLinterRule.php +++ b/src/lint/linter/xhpast/rules/ArcanistDeprecationXHPASTLinterRule.php @@ -28,7 +28,10 @@ public function setLinterConfigurationValue($key, $value) { switch ($key) { case 'xhpast.deprecated.functions': - $this->deprecatedFunctions = $value; + $this->deprecatedFunctions = array(); + foreach ($value as $name => $message) { + $this->deprecatedFunctions[strtolower($name)] = $message; + } return; default: @@ -38,6 +41,7 @@ public function process(XHPASTNode $root) { $map = $this->deprecatedFunctions; + $function_calls = $this->getFunctionCalls($root, array_keys($map)); foreach ($function_calls as $call) { diff --git a/src/lint/linter/xhpast/rules/__tests__/deprecation/deprecated-function.lint-test b/src/lint/linter/xhpast/rules/__tests__/deprecation/deprecated-function.lint-test --- a/src/lint/linter/xhpast/rules/__tests__/deprecation/deprecated-function.lint-test +++ b/src/lint/linter/xhpast/rules/__tests__/deprecation/deprecated-function.lint-test @@ -1,6 +1,6 @@