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
F14091629: D9571.diff
Mon, Nov 25, 1:10 AM
Unknown Object (File)
Sat, Nov 23, 8:21 AM
Unknown Object (File)
Wed, Nov 20, 1:18 PM
Unknown Object (File)
Mon, Nov 18, 6:23 PM
Unknown Object (File)
Fri, Nov 15, 12:43 PM
Unknown Object (File)
Sun, Nov 10, 5:24 PM
Unknown Object (File)
Thu, Nov 7, 1:20 PM
Unknown Object (File)
Oct 18 2024, 7:48 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