diff --git a/src/parser/argument/PhutilArgumentParser.php b/src/parser/argument/PhutilArgumentParser.php --- a/src/parser/argument/PhutilArgumentParser.php +++ b/src/parser/argument/PhutilArgumentParser.php @@ -117,6 +117,9 @@ return $this->parseInternal($specs, false); } + /** + * @return this + */ private function parseInternal(array $specs, $correct_spelling) { $specs = PhutilArgumentSpecification::newSpecsFromList($specs); $this->mergeSpecs($specs); diff --git a/src/xsprintf/csprintf.php b/src/xsprintf/csprintf.php --- a/src/xsprintf/csprintf.php +++ b/src/xsprintf/csprintf.php @@ -29,7 +29,8 @@ * * @param string sprintf()-style format string. * @param ... Zero or more arguments. - * @return string Formatted string, escaped appropriately for shell contexts. + * @return PhutilCommandString Formatted string, escaped appropriately for + * shell contexts. */ function csprintf($pattern /* , ... */) { $args = func_get_args(); @@ -41,7 +42,8 @@ * * @param string sprintf()-style format string. * @param list List of zero or more arguments to csprintf(). - * @return string Formatted string, escaped appropriately for shell contexts. + * @return PhutilCommandString Formatted string, escaped appropriately for + * shell contexts. */ function vcsprintf($pattern, array $argv) { array_unshift($argv, $pattern);