Page MenuHomePhabricator

D9656.id23171.diff
No OneTemporary

D9656.id23171.diff

diff --git a/src/lint/linter/ArcanistXHPASTLinter.php b/src/lint/linter/ArcanistXHPASTLinter.php
--- a/src/lint/linter/ArcanistXHPASTLinter.php
+++ b/src/lint/linter/ArcanistXHPASTLinter.php
@@ -394,7 +394,7 @@
$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) {

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 22, 5:24 PM (2 h, 35 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6919144
Default Alt Text
D9656.id23171.diff (549 B)

Event Timeline