@@ -179,7 +179,7 @@ public static function init()
179179 * Named options must be in the following formats:
180180 * php index.php user -v --v -name=John --name=John
181181 *
182- * @param string $prefix You may specify a string with which to prompt the user.
182+ * @param string|null $prefix You may specify a string with which to prompt the user.
183183 */
184184 public static function input (?string $ prefix = null ): string
185185 {
@@ -210,9 +210,9 @@ public static function input(?string $prefix = null): string
210210 * // Do not provide options but requires a valid email
211211 * $email = CLI::prompt('What is your email?', null, 'required|valid_email');
212212 *
213- * @param string $field Output "field" question
214- * @param array|string $options String to a default value, array to a list of options (the first option will be the default value)
215- * @param array|string $validation Validation rules
213+ * @param string $field Output "field" question
214+ * @param array|string $options String to a default value, array to a list of options (the first option will be the default value)
215+ * @param array|string|null $validation Validation rules
216216 *
217217 * @return string The user input
218218 *
@@ -574,10 +574,10 @@ public static function clearScreen()
574574 * Returns the given text with the correct color codes for a foreground and
575575 * optionally a background color.
576576 *
577- * @param string $text The text to color
578- * @param string $foreground The foreground color
579- * @param string $background The background color
580- * @param string $format Other formatting to apply. Currently only 'underline' is understood
577+ * @param string $text The text to color
578+ * @param string $foreground The foreground color
579+ * @param string|null $background The background color
580+ * @param string|null $format Other formatting to apply. Currently only 'underline' is understood
581581 *
582582 * @return string The color coded string
583583 */
0 commit comments