diff --git a/src/lint/linter/ArcanistXHPASTLinter.php b/src/lint/linter/ArcanistXHPASTLinter.php index b09d50cb..514f309c 100644 --- a/src/lint/linter/ArcanistXHPASTLinter.php +++ b/src/lint/linter/ArcanistXHPASTLinter.php @@ -394,7 +394,7 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter { $target = phutil_get_library_root('arcanist'). '/../resources/php_compat_info.json'; - $compat_info = json_decode(file_get_contents($target), true); + $compat_info = phutil_json_decode(Filesystem::readFile($target)); $calls = $root->selectDescendantsOfType('n_FUNCTION_CALL'); foreach ($calls as $call) {