From baa64a5c8309370bcc69f533de8b124b5291198a Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Fri, 21 Sep 2012 14:59:04 -0700 Subject: [PATCH] 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 --- src/lint/linter/ArcanistXHPASTLinter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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". -- 2.43.0