From: Bob Trahan Date: Fri, 21 Sep 2012 21:59:04 +0000 (-0700) Subject: fix a bug in ArcanistXHPLinter X-Git-Tag: conduit-6~110 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=baa64a5c8309370bcc69f533de8b124b5291198a;p=arcanist.git fix a bug in ArcanistXHPLinter 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 --- diff --git a/src/lint/linter/ArcanistXHPASTLinter.php b/src/lint/linter/ArcanistXHPASTLinter.php index 77b2cde4..8f230670 100644 --- a/src/lint/linter/ArcanistXHPASTLinter.php +++ b/src/lint/linter/ArcanistXHPASTLinter.php @@ -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".