From 3629308f2faa5d212d4b57737181525761146f71 Mon Sep 17 00:00:00 2001 From: Jason Ge Date: Mon, 28 Nov 2011 22:15:06 -0800 Subject: [PATCH] Enable override ArcanistXHPASTLinter Summary: add method setXHPASTTreeForPath() so that a child class of ArcanistXHPASTLinter can set the tree easily. Test Plan: wrote a subclass of ArcanistXHPASTLinter and it worked. Reviewers: pad, epriestley Reviewed By: pad CC: aran, pad, jungejason Differential Revision: 1134 --- src/lint/linter/xhpast/ArcanistXHPASTLinter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lint/linter/xhpast/ArcanistXHPASTLinter.php b/src/lint/linter/xhpast/ArcanistXHPASTLinter.php index 09af5d15..87ba74a0 100644 --- a/src/lint/linter/xhpast/ArcanistXHPASTLinter.php +++ b/src/lint/linter/xhpast/ArcanistXHPASTLinter.php @@ -23,7 +23,7 @@ */ class ArcanistXHPASTLinter extends ArcanistLinter { - private $trees = array(); + protected $trees = array(); const LINT_PHP_SYNTAX_ERROR = 1; const LINT_UNABLE_TO_PARSE = 2;