diff --git a/src/Composer/IO/IOInterface.php b/src/Composer/IO/IOInterface.php index d6f698649..88b1cd46c 100644 --- a/src/Composer/IO/IOInterface.php +++ b/src/Composer/IO/IOInterface.php @@ -191,7 +191,9 @@ interface IOInterface extends LoggerInterface * @param bool $multiselect Select more than one value separated by comma * * @throws \InvalidArgumentException + * * @return int|string|list|bool The selected value or values (the key of the choices array) + * @phpstan-return ($multiselect is true ? list : string|int|bool) */ public function select(string $question, array $choices, $default, $attempts = false, string $errorMessage = 'Value "%s" is invalid', bool $multiselect = false);