mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-21 22:32:41 +01:00
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
This commit is contained in:
parent
0ef326f3a5
commit
70f9b5d3ae
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue