Skip to content

Commit 3d5c546

Browse files
committed
fix: getScreenSize return data type error
1 parent f060632 commit 3d5c546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Util/ShellUtil.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public static function getScreenSize(bool $refresh = false): array|bool
120120
$matches
121121
)
122122
) {
123-
return ($size = [$matches[2], $matches[1]]);
123+
return ($size = [(int)$matches[2], (int)$matches[1]]);
124124
}
125125

126126
// fallback to tput, which may not be updated on terminal resize

0 commit comments

Comments
 (0)