diff --git a/src/applications/conduit/method/phpast/ConduitAPI_phpast_getast_Method.php b/src/applications/conduit/method/phpast/ConduitAPI_phpast_getast_Method.php index fe0dacf4d1..abaa6385e5 100644 --- a/src/applications/conduit/method/phpast/ConduitAPI_phpast_getast_Method.php +++ b/src/applications/conduit/method/phpast/ConduitAPI_phpast_getast_Method.php @@ -42,8 +42,11 @@ final class ConduitAPI_phpast_getast_Method extends ConduitAPIMethod { } protected function execute(ConduitAPIRequest $request) { - return json_decode( - xhpast_get_parser_future($request->getValue('code'))->resolvex()[0]); + $source = $request->getValue('code'); + $future = xhpast_get_parser_future($source); + list($stdout) = $future->resolvex(); + + return json_decode($stdout, true); } }