]> khamidou — GitHub mirrors - arcanist.git/commit
Add constants and class methods to `php_compat_info.json`.
authorJoshua Spence <josh@joshuaspence.com>
Mon, 16 Jun 2014 15:00:23 +0000 (01:00 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Mon, 16 Jun 2014 15:00:23 +0000 (01:00 +1000)
commit36698b92afb9ff48566c2604ff7335c1c715f07c
tree5f45d31c165c5130a9f1561ec91fee6c6c6a7f13
parent8f8ab969db1754f75e4978982bdee82606cc30f6
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
resources/php_compat_info.json
scripts/update_compat_info.php
src/lint/linter/ArcanistXHPASTLinter.php