Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎src/Util/ShellUtil.php

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /