Skip to content

Commit d9f796c

Browse files
committed
refactor: fix param types
1 parent 7aad65d commit d9f796c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

system/CLI/CLI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public static function prompt(string $field, $options = null, $validation = null
256256
static::fwrite(STDOUT, $field . (trim($field) ? ' ' : '') . $extraOutput . ': ');
257257

258258
// Read the input from keyboard.
259-
$input = trim(static::$io->input()) ?: $default;
259+
$input = trim(static::$io->input()) ?: (string) $default;
260260

261261
if ($validation !== []) {
262262
while (! static::validate('"' . trim($field) . '"', $input, $validation)) {

system/Commands/Database/MigrateStatus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function run(array $params)
127127
continue;
128128
}
129129

130-
$date = date('Y-m-d H:i:s', $row->time);
130+
$date = date('Y-m-d H:i:s', (int) $row->time);
131131
$group = $row->group;
132132
$batch = $row->batch;
133133
// @codeCoverageIgnoreEnd

0 commit comments

Comments
 (0)