Skip to content

Commit f2d0053

Browse files
committed
Cast string
1 parent 9833872 commit f2d0053

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MigrationsGenerator/MigrateGenerateCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ protected function askInt(string $question, int $default = null): int
205205
$ask .= ' or blank for default. [Default: '.$default.']';
206206
}
207207

208-
$answer = $this->ask($question, $default);
208+
$answer = $this->ask($question, (string) $default);
209209
while (!ctype_digit($answer) && !($answer === '' && !is_null($default))) {
210-
$answer = $this->ask($ask, $default);
210+
$answer = $this->ask($ask, (string) $default);
211211
}
212212

213213
if ($answer === '') {

0 commit comments

Comments
 (0)