Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13977370
D9656.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.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
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)
Attached To
Mode
D9656: Improve the handling of the `php_compat_info.json` file.
Attached
Detach File
Event Timeline
Log In to Comment