Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14389152
D9656.id23171.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
549 B
Referenced Files
None
Subscribers
None
D9656.id23171.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D9656: Improve the handling of the `php_compat_info.json` file.
Attached
Detach File
Event Timeline
Log In to Comment