Skip to content

Commit

Permalink
fix: getScreenSize return data type error
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Apr 10, 2022
1 parent f060632 commit 3d5c546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util/ShellUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public static function getScreenSize(bool $refresh = false): array|bool
$matches
)
) {
return ($size = [$matches[2], $matches[1]]);
return ($size = [(int)$matches[2], (int)$matches[1]]);
}

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

0 comments on commit 3d5c546

Please sign in to comment.