]> khamidou — GitHub mirrors - arcanist.git/commit
Present case of class and interface names.
authorJoshua Spence <josh@joshuaspence.com>
Wed, 11 Jun 2014 12:39:51 +0000 (05:39 -0700)
committerepriestley <git@epriestley.com>
Wed, 11 Jun 2014 12:39:51 +0000 (05:39 -0700)
commitb189b594d20c758ae9389ad93b4b8d74cfa82aef
tree73fb896bfc74c68be0ac2d089740918d49feb413
parent4c06d1b9e39fda18aa420da5575a8c212292ce23
Present case of class and interface names.

Summary: Currently, class and interface names are converted to lowercase when comparing minimum and maximum versions. This is necessary in order to compare with the data from `php_compat_info.json` but causes the lint message to be slightly misleading.

Test Plan:
Linted a test file.

**Before**
```
   Error  (XHP31) Use Of PHP 5.3 Features
    This codebase targets PHP 5.2.3, but `iterator` was not introduced until
    PHP 5.3.0.

               1 <?php
               2
    >>>        3 final class FooBar implements Iterator {}
```

**After**
```
   Error  (XHP31) Use Of PHP 5.3 Features
    This codebase targets PHP 5.2.3, but `Iterator` was not introduced until
    PHP 5.3.0.

               1 <?php
               2
    >>>        3 final class FooBar implements Iterator {}
```

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9471
src/lint/linter/ArcanistXHPASTLinter.php