@@ -179,7 +179,7 @@ public static function init()
179
179
* Named options must be in the following formats:
180
180
* php index.php user -v --v -name=John --name=John
181
181
*
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.
183
183
*/
184
184
public static function input (?string $ prefix = null ): string
185
185
{
@@ -210,9 +210,9 @@ public static function input(?string $prefix = null): string
210
210
* // Do not provide options but requires a valid email
211
211
* $email = CLI::prompt('What is your email?', null, 'required|valid_email');
212
212
*
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
216
216
*
217
217
* @return string The user input
218
218
*
@@ -574,10 +574,10 @@ public static function clearScreen()
574
574
* Returns the given text with the correct color codes for a foreground and
575
575
* optionally a background color.
576
576
*
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
581
581
*
582
582
* @return string The color coded string
583
583
*/
0 commit comments