From 70f9b5d3aed790d492c3e0d34b1203c510a916ed Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Tue, 3 Feb 2015 06:58:33 +1100 Subject: [PATCH] Use `PhutilXHPASTBinary` methods Summary: Use `PhutilXHPASTBinary` methods instead of `xhpast_parse` functions. Depends on D11517. Test Plan: N/A, this is a direct swap. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11613 --- src/lint/linter/ArcanistBaseXHPASTLinter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lint/linter/ArcanistBaseXHPASTLinter.php b/src/lint/linter/ArcanistBaseXHPASTLinter.php index 694e4853..23296673 100644 --- a/src/lint/linter/ArcanistBaseXHPASTLinter.php +++ b/src/lint/linter/ArcanistBaseXHPASTLinter.php @@ -103,7 +103,8 @@ abstract class ArcanistBaseXHPASTLinter extends ArcanistFutureLinter { final protected function buildSharedFutures(array $paths) { foreach ($paths as $path) { if (!isset($this->futures[$path])) { - $this->futures[$path] = xhpast_get_parser_future($this->getData($path)); + $this->futures[$path] = PhutilXHPASTBinary::getParserFuture( + $this->getData($path)); } } return array_select_keys($this->futures, $paths);