]> khamidou — GitHub mirrors - arcanist.git/commitdiff
fix a bug in ArcanistXHPLinter
authorBob Trahan <bob.trahan@gmail.com>
Fri, 21 Sep 2012 21:59:04 +0000 (14:59 -0700)
committerBob Trahan <bob.trahan@gmail.com>
Fri, 21 Sep 2012 21:59:04 +0000 (14:59 -0700)
Summary: $param is null here. it should be $node.

Test Plan: arc lint no longer barfed on me!

Reviewers: vrana, epriestley

Reviewed By: vrana

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D3540

src/lint/linter/ArcanistXHPASTLinter.php

index 77b2cde41d434dff7a11bcdff92759df978a246a..8f2306705edb9c1becbe069a06fa3edda28795b0 100644 (file)
@@ -450,7 +450,7 @@ final class ArcanistXHPASTLinter extends ArcanistLinter {
         }
       } else if ($windows_version !== null) {
         $this->raiseLintAtNode(
-          $param,
+          $node,
           self::LINT_PHP_53_FEATURES,
           "This codebase targets PHP 5.2.3, but `{$name}()` is not available ".
           "on Windows".