Allows the ArcanistXHPASTLinter to determine whether constants can be used, based on the target PHP version. Also added class methods to the compatibility information, although this isn't used yet (it is small anyway).
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Commits
- rARC36698b92afb9: Add constants and class methods to `php_compat_info.json`.
Created a test file that contained the JSON_PRETTY_PRINT constant. Verified that a linter error was raised.
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Branch
- phpcompatinfo-more
- Lint
Lint Passed Severity Location Code Message Advice src/lint/linter/ArcanistXHPASTLinter.php:502 XHP16 TODO Comment - Unit
Tests Passed - Build Status
Buildable 1139 Build 1139: [Placeholder Plan] Wait for 30 Seconds