diff --git a/build/kint.phar b/build/kint.phar index 2c0e531f7..4d352be0a 100644 Binary files a/build/kint.phar and b/build/kint.phar differ diff --git a/src/Renderer/CliRenderer.php b/src/Renderer/CliRenderer.php index 74d1ed3ca..f8401f40e 100644 --- a/src/Renderer/CliRenderer.php +++ b/src/Renderer/CliRenderer.php @@ -94,8 +94,12 @@ 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) { + /** + * @psalm-suppress InvalidCast + * Psalm bug #11080 + */ self::$terminal_width = (int) $tput; } } catch (Throwable $t) {