Skip to content

Commit e2edac9

Browse files
xabbuhfabpot
authored andcommitted
[VarDumper] Disable links for IntelliJ platform
1 parent 15715d4 commit e2edac9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dumper/CliDumper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,8 @@ protected function style(string $style, string $value, array $attr = [])
448448

449449
if (null === $this->handlesHrefGracefully) {
450450
$this->handlesHrefGracefully = 'JetBrains-JediTerm' !== getenv('TERMINAL_EMULATOR')
451-
&& (!getenv('KONSOLE_VERSION') || (int) getenv('KONSOLE_VERSION') > 201100);
451+
&& (!getenv('KONSOLE_VERSION') || (int) getenv('KONSOLE_VERSION') > 201100)
452+
&& !isset($_SERVER['IDEA_INITIAL_DIRECTORY']);
452453
}
453454

454455
if (isset($attr['ellipsis'], $attr['ellipsis-type'])) {

0 commit comments

Comments
 (0)