@@ -273,10 +273,10 @@ public static function prompt(string $field, $options = null, $validation = null
273273 /**
274274 * prompt(), but based on the option's key
275275 *
276- * @param list<string>|string $text Output "field" text or an one or two value array where the first value is the text before listing the options
277- * and the second value the text before asking to select one option. Provide empty string to omit
278- * @param array<int|string , string> $options A list of options (array(key => description)), the first option will be the default value
279- * @param list<string>|string|null $validation Validation rules
276+ * @param list<string>|string $text Output "field" text or an one or two value array where the first value is the text before listing the options
277+ * and the second value the text before asking to select one option. Provide empty string to omit
278+ * @param array<array-key , string> $options A list of options (array(key => description)), the first option will be the default value
279+ * @param list<string>|string|null $validation Validation rules
280280 *
281281 * @return string The selected key of $options
282282 */
@@ -302,11 +302,11 @@ public static function promptByKey($text, array $options, $validation = null): s
302302 /**
303303 * This method is the same as promptByKey(), but this method supports multiple keys, separated by commas.
304304 *
305- * @param string $text Output "field" text or an one or two value array where the first value is the text before listing the options
306- * and the second value the text before asking to select one option. Provide empty string to omit
307- * @param array<int|string , string> $options A list of options (array(key => description)), the first option will be the default value
305+ * @param string $text Output "field" text or an one or two value array where the first value is the text before listing the options
306+ * and the second value the text before asking to select one option. Provide empty string to omit
307+ * @param array<array-key , string> $options A list of options (array(key => description)), the first option will be the default value
308308 *
309- * @return array<int|string , string> The selected key(s) and value(s) of $options
309+ * @return array<array-key , string> The selected key(s) and value(s) of $options
310310 */
311311 public static function promptByMultipleKeys (string $ text , array $ options ): array
312312 {
@@ -376,7 +376,7 @@ public static function promptByMultipleKeys(string $text, array $options): array
376376 /**
377377 * Validation for $options in promptByKey() and promptByMultipleKeys(). Return an error if $options is an empty array.
378378 *
379- * @param array<int|string , string> $options
379+ * @param array<array-key , string> $options
380380 */
381381 private static function isZeroOptions (array $ options ): void
382382 {
@@ -388,7 +388,7 @@ private static function isZeroOptions(array $options): void
388388 /**
389389 * Print each key and value one by one
390390 *
391- * @param array<int|string , string> $options
391+ * @param array<array-key , string> $options
392392 */
393393 private static function printKeysAndValues (array $ options ): void
394394 {
@@ -1029,8 +1029,8 @@ public static function getOptionString(bool $useLongOpts = false, bool $trim = f
10291029 /**
10301030 * Returns a well formatted table
10311031 *
1032- * @param list<array<int|string , mixed>> $tbody List of rows
1033- * @param list<string> $thead List of columns
1032+ * @param list<array<array-key , mixed>> $tbody List of rows
1033+ * @param list<string> $thead List of columns
10341034 *
10351035 * @return void
10361036 */
0 commit comments