From 61ccb8500dfad4e2d85a84cee8a3d639ac2aaff3 Mon Sep 17 00:00:00 2001 From: Ryan Chandler Date: Tue, 5 Nov 2024 00:36:44 +0000 Subject: [PATCH] fix: terminal highlighting --- src/Generators/TerminalGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generators/TerminalGenerator.php b/src/Generators/TerminalGenerator.php index b2f2133..bfb8964 100644 --- a/src/Generators/TerminalGenerator.php +++ b/src/Generators/TerminalGenerator.php @@ -18,7 +18,7 @@ public function generate(array $tokens): string foreach ($tokens as $line) { foreach ($line as $token) { - if ($token->settings !== null) { + if ($token->settings !== []) { $output .= $token->settings['default']->toAnsiEscape(); }