diff --git a/scripts/symbols/generate_php_symbols.php b/scripts/symbols/generate_php_symbols.php --- a/scripts/symbols/generate_php_symbols.php +++ b/scripts/symbols/generate_php_symbols.php @@ -20,7 +20,7 @@ foreach ($input as $file) { $file = Filesystem::readablePath($file); $data[$file] = Filesystem::readFile($file); - $futures[$file] = xhpast_get_parser_future($data[$file]); + $futures[$file] = PhutilXHPASTBinary::getParserFuture($data[$file]); } $futures = id(new FutureIterator($futures)) diff --git a/src/applications/diviner/atomizer/DivinerPHPAtomizer.php b/src/applications/diviner/atomizer/DivinerPHPAtomizer.php --- a/src/applications/diviner/atomizer/DivinerPHPAtomizer.php +++ b/src/applications/diviner/atomizer/DivinerPHPAtomizer.php @@ -7,7 +7,7 @@ } protected function executeAtomize($file_name, $file_data) { - $future = xhpast_get_parser_future($file_data); + $future = PhutilXHPASTBinary::getParserFuture($file_data); $tree = XHPASTTree::newFromDataAndResolvedExecFuture( $file_data, $future->resolve()); diff --git a/src/applications/phpast/controller/PhabricatorXHPASTViewRunController.php b/src/applications/phpast/controller/PhabricatorXHPASTViewRunController.php --- a/src/applications/phpast/controller/PhabricatorXHPASTViewRunController.php +++ b/src/applications/phpast/controller/PhabricatorXHPASTViewRunController.php @@ -11,7 +11,7 @@ if ($request->isFormPost()) { $source = $request->getStr('source'); - $future = xhpast_get_parser_future($source); + $future = PhutilXHPASTBinary::getParserFuture($source); $resolved = $future->resolve(); // This is just to let it throw exceptions if stuff is broken. diff --git a/src/infrastructure/internationalization/management/PhabricatorInternationalizationManagementExtractWorkflow.php b/src/infrastructure/internationalization/management/PhabricatorInternationalizationManagementExtractWorkflow.php --- a/src/infrastructure/internationalization/management/PhabricatorInternationalizationManagementExtractWorkflow.php +++ b/src/infrastructure/internationalization/management/PhabricatorInternationalizationManagementExtractWorkflow.php @@ -31,7 +31,7 @@ foreach ($path_files as $file) { $full_path = $root.DIRECTORY_SEPARATOR.$file; $data = Filesystem::readFile($full_path); - $futures[$full_path] = xhpast_get_parser_future($data); + $futures[$full_path] = PhutilXHPASTBinary::getParserFuture($data); } }