Page MenuHomePhabricator

D9656.diff
No OneTemporary

D9656.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
Sat, Oct 19, 6:17 PM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6733355
Default Alt Text
D9656.diff (549 B)

Event Timeline