]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Minor fix for the `ArcanistXHPASTLinter`.
authorJoshua Spence <josh@joshuaspence.com>
Sun, 22 Jun 2014 15:56:57 +0000 (01:56 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Sun, 22 Jun 2014 15:56:57 +0000 (01:56 +1000)
Summary: This `LINT_PHP_53_FEATURES` should have been replaced with `LINT_PHP_COMPATIBILITY` in D9576.

Test Plan: Ran `arc unit`.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

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

src/lint/linter/ArcanistXHPASTLinter.php

index 514f309cd8060c69fe7f635dbc66a3b999275c14..995b36b26bfd555ba19940143f1b191967311ec7 100644 (file)
@@ -467,7 +467,7 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter {
       if ($version && version_compare($version['min'], $this->version, '>')) {
         $this->raiseLintAtNode(
           $node,
-          self::LINT_PHP_53_FEATURES,
+          self::LINT_PHP_COMPATIBILITY,
           "This codebase targets PHP {$this->version}, but `{$name}` was not ".
           "introduced until PHP {$version['min']}.");
       }