From e2edac9ce47e6df07e38143c7cfa6bdbc1a6dcc4 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 3 Feb 2023 10:25:44 +0100 Subject: [PATCH] [VarDumper] Disable links for IntelliJ platform --- Dumper/CliDumper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dumper/CliDumper.php b/Dumper/CliDumper.php index e061c8d7..b5d9ac33 100644 --- a/Dumper/CliDumper.php +++ b/Dumper/CliDumper.php @@ -448,7 +448,8 @@ protected function style(string $style, string $value, array $attr = []) if (null === $this->handlesHrefGracefully) { $this->handlesHrefGracefully = 'JetBrains-JediTerm' !== getenv('TERMINAL_EMULATOR') - && (!getenv('KONSOLE_VERSION') || (int) getenv('KONSOLE_VERSION') > 201100); + && (!getenv('KONSOLE_VERSION') || (int) getenv('KONSOLE_VERSION') > 201100) + && !isset($_SERVER['IDEA_INITIAL_DIRECTORY']); } if (isset($attr['ellipsis'], $attr['ellipsis-type'])) {