mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-25 16:22:42 +01:00
Improve the handling of the php_compat_info.json
file.
Summary: See inline comments on D9576. Also replace `json_decode` with `phutil_json_decode`, for better error handling. Test Plan: Make sure `arc unit` still works. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9656
This commit is contained in:
parent
b9b9c138fe
commit
990027e3e0
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue