From 74e052de51424d0e919c5c76fb7708651762adb4 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 20 Jan 2023 01:30:39 +0000 Subject: [PATCH] Terminal: fix deprecation error on PHP 8.2 --- src/utils/Terminal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Terminal.php b/src/utils/Terminal.php index 7144b8a9b7..49b4224ec8 100644 --- a/src/utils/Terminal.php +++ b/src/utils/Terminal.php @@ -92,7 +92,7 @@ abstract class Terminal{ self::$FORMAT_RESET = "\x1b[m"; - $color = fn(int $code) => "\x1b[38;5;${code}m"; + $color = fn(int $code) => "\x1b[38;5;{$code}m"; self::$COLOR_BLACK = $color(16); self::$COLOR_DARK_BLUE = $color(19);