]> khamidou — GitHub mirrors - arcanist.git/commit
Raise a linter error when removed symbols are used
authorJoshua Spence <josh@joshuaspence.com>
Sun, 4 Jan 2015 07:38:07 +0000 (18:38 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Sun, 4 Jan 2015 07:38:07 +0000 (18:38 +1100)
commita10002adec13a587c20fc2c7cad148d4d77f1193
tree1067846bde85ef85f34ea818f1d112b6464d2c44
parentb31e9c0cfee0fdc5c5f68a758322f3b7e89488a7
Raise a linter error when removed symbols are used

Summary: Ref T5141. Utilize the `'max'` key from the `php_compat_info.json` compatibility map to lint for the use of classes/functions/symbols which have been removed from the target PHP version.

Test Plan: Added a test case for `arc unit`.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T5141

Differential Revision: https://secure.phabricator.com/D10538
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/php-compatibility.lint-test [new file with mode: 0644]