Page MenuHomePhabricator

Add constants and class methods to `php_compat_info.json`.
ClosedPublic

Authored by joshuaspence on Jun 16 2014, 2:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 21, 2:09 PM
Unknown Object (File)
Thu, Apr 11, 10:32 AM
Unknown Object (File)
Fri, Mar 29, 10:49 PM
Unknown Object (File)
Jan 20 2024, 8:21 PM
Unknown Object (File)
Jan 7 2024, 5:28 PM
Unknown Object (File)
Jan 3 2024, 4:07 PM
Unknown Object (File)
Dec 30 2023, 4:55 PM
Unknown Object (File)
Dec 27 2023, 2:01 PM
Subscribers

Details

Summary

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).

Test Plan

Created a test file that contained the JSON_PRETTY_PRINT constant. Verified that a linter error was raised.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

joshuaspence retitled this revision from to Add constants and class methods to `php_compat_info.json`..
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jun 16 2014, 2:56 PM