HomePhabricator

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

Description

Add constants and class methods to php_compat_info.json.

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.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9571

Details

Provenance
joshuaspenceAuthored on
joshuaspencePushed on Jun 16 2014, 3:00 PM
Reviewer
Blessed Reviewers
Differential Revision
D9571: Add constants and class methods to `php_compat_info.json`.
Parents
rARC8f8ab969db17: Update `update_compat_info.php` to use PHP_CompatInfo version 3
Branches
Unknown
Tags
Unknown

Event Timeline