From: Joshua Spence Date: Sun, 22 Jun 2014 15:56:57 +0000 (+1000) Subject: Minor fix for the `ArcanistXHPASTLinter`. X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=4f96a23485c6521c412b7b23e1683600a1094cae;p=arcanist.git Minor fix for the `ArcanistXHPASTLinter`. 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 --- diff --git a/src/lint/linter/ArcanistXHPASTLinter.php b/src/lint/linter/ArcanistXHPASTLinter.php index 514f309c..995b36b2 100644 --- a/src/lint/linter/ArcanistXHPASTLinter.php +++ b/src/lint/linter/ArcanistXHPASTLinter.php @@ -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']}."); }