Skip to content

Commit 202cef4

Browse files
committed
fix: title formatter var type maybe not fixed
1 parent 5e3d2d3 commit 202cef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Component/Formatter/Title.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static function show(string $title, array $opts = []): void
4343
// list($sW, $sH) = Helper::getScreenSize();
4444
$width = (int)$opts['width'];
4545
$char = trim($opts['char']);
46-
$indent = (int)$opts['indent'] >= 0 ? $opts['indent'] : 0;
46+
$indent = (int)$opts['indent'] >= 0 ? (int)$opts['indent'] : 0;
4747

4848
$indentStr = '';
4949
if ($indent > 0) {

0 commit comments

Comments
 (0)