Page MenuHomePhabricator

D17375.id41781.diff
No OneTemporary

D17375.id41781.diff

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);

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 25, 8:52 AM (2 w, 6 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6739312
Default Alt Text
D17375.id41781.diff (1 KB)

Event Timeline