Skip to content

Commit

Permalink
CliRenderer: Hide stderr in tput check
Browse files Browse the repository at this point in the history
  • Loading branch information
jnvsor committed Aug 21, 2024
1 parent 6eeb503 commit d81a45f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified build/kint.phar
Binary file not shown.
4 changes: 2 additions & 2 deletions src/Renderer/CliRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ public function __construct()
if (null === self::$terminal_width) {
if (!KINT_WIN && self::$detect_width) {
try {
$tput = \exec('tput cols');
if (false !== $tput) {
$tput = \exec('tput cols 2>/dev/null');
if ((bool) $tput) {
self::$terminal_width = (int) $tput;

Check failure on line 99 in src/Renderer/CliRenderer.php

View workflow job for this annotation

GitHub Actions / Static analysis check

InvalidCast

src/Renderer/CliRenderer.php:99:55: InvalidCast: false cannot be cast to int (see https://psalm.dev/103)
}
} catch (Throwable $t) {
Expand Down

0 comments on commit d81a45f

Please sign in to comment.