Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13998321
D17375.id41781.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D17375.id41781.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D17375: Fix errors found by PHPStan
Attached
Detach File
Event Timeline
Log In to Comment