@@ -251,7 +251,7 @@ public function definitionList(...$list): void
251251 /**
252252 * @inheritDoc
253253 */
254- public function ask (string $ question , string $ default = null , callable $ validator = null ): mixed
254+ public function ask (string $ question , ? string $ default = null , ? callable $ validator = null ): mixed
255255 {
256256 $ question = new Question ($ question , $ default );
257257 $ question ->setValidator ($ validator );
@@ -262,7 +262,7 @@ public function ask(string $question, string $default = null, callable $validato
262262 /**
263263 * @inheritDoc
264264 */
265- public function askHidden (string $ question , callable $ validator = null ): mixed
265+ public function askHidden (string $ question , ? callable $ validator = null ): mixed
266266 {
267267 $ question = new Question ($ question );
268268
@@ -445,7 +445,7 @@ private function writeBuffer(string $message, bool $newLine, int $type): void
445445 $ this ->bufferedOutput ->write ($ message , $ newLine , $ type );
446446 }
447447
448- private function createBlock (iterable $ messages , string $ type = null , string $ style = null , string $ prefix = ' ' , bool $ padding = false , bool $ escape = false ): array
448+ private function createBlock (iterable $ messages , ? string $ type = null , ? string $ style = null , string $ prefix = ' ' , bool $ padding = false , bool $ escape = false ): array
449449 {
450450 $ indentLength = 0 ;
451451 $ prefixLength = Helper::removeDecoration ($ this ->getFormatter (), $ prefix );
0 commit comments