@@ -180,7 +180,7 @@ public static function unConfirm(string $question, bool $default = true): bool
180180 *
181181 * @return bool
182182 */
183- public static function answerIsYes (bool $ default = null ): bool
183+ public static function answerIsYes (? bool $ default = null ): bool
184184 {
185185 $ mark = ' [yes|no]: ' ;
186186
@@ -216,7 +216,7 @@ public static function answerIsYes(bool $default = null): bool
216216 *
217217 * @return string|null
218218 */
219- public static function ask (string $ question , string $ default = '' , Closure $ validator = null ): ?string
219+ public static function ask (string $ question , string $ default = '' , ? Closure $ validator = null ): ?string
220220 {
221221 return self ::question ($ question , $ default , $ validator );
222222 }
@@ -231,7 +231,7 @@ public static function ask(string $question, string $default = '', Closure $vali
231231 * @return string
232232 * @see Question::ask()
233233 */
234- public static function question (string $ question , string $ default = '' , Closure $ validator = null ): string
234+ public static function question (string $ question , string $ default = '' , ? Closure $ validator = null ): string
235235 {
236236 return Question::ask ($ question , $ default , $ validator );
237237 }
@@ -250,7 +250,7 @@ public static function question(string $question, string $default = '', Closure
250250 public static function limitedAsk (
251251 string $ question ,
252252 string $ default = '' ,
253- Closure $ validator = null ,
253+ ? Closure $ validator = null ,
254254 int $ times = 3
255255 ): string {
256256 return LimitedAsk::ask ($ question , $ default , $ validator , $ times );
0 commit comments