]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix incorrect linter code being raised
authorJoshua Spence <josh@joshuaspence.com>
Thu, 25 Sep 2014 02:58:37 +0000 (12:58 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Thu, 25 Sep 2014 02:58:37 +0000 (12:58 +1000)
Summary: `ArcanistXHPASTLinter::lintSpaceAroundConcatenationOperators` should raise `LINT_CONCATENATION_OPERATOR`, not `LINT_BINARY_EXPRESSION_SPACING`.

Test Plan: N/A

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

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

src/lint/linter/ArcanistXHPASTLinter.php

index 5d443745ca641606b961e869acf8b01372a992da..b059ddca6fbae6c20e1b84dbfc453633af63f06e 100644 (file)
@@ -2140,7 +2140,7 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter {
 
         $this->raiseLintAtToken(
           $wtoken,
-          self::LINT_BINARY_EXPRESSION_SPACING,
+          self::LINT_CONCATENATION_OPERATOR,
           'Convention: no spaces around "." (string concatenation) operator.',
           '');
       }