8000 minor #30296 [VarDumper] link paths in stack traces to IDE (nicolas-g… · symfony/symfony@5909a47 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5909a47

Browse files
minor #30296 [VarDumper] link paths in stack traces to IDE (nicolas-grekas)
This PR was merged into the 4.3-dev branch 8000 . Discussion ---------- [VarDumper] link paths in stack traces to IDE | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | not really | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - `./test.php:8` and `./test.php:11` can now be clicked: ![image](https://user-images.githubusercontent.com/243674/52971041-466b1c80-33b6-11e9-9bc1-0e55dc115f63.png) Commits ------- 6672ac3 [VarDumper] link paths in stack traces to IDE
2 parents e7430f4 + 6672ac3 commit 5909a47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/VarDumper/Caster/ExceptionCaster.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public static function castFrameStub(FrameStub $frame, array $a, Stub $stub, $is
236236
$ellipsis += 1 + \strlen($f['line']);
237237
}
238238
}
239-
$srcAttr .= '&separator= ';
239+
$srcAttr .= sprintf('&separator= &file=%s&line=%d', rawurlencode($f['file']), $f['line']);
240240
} else {
241241
$srcAttr .= '&separator=:';
242242
}

0 commit comments

Comments
 (0)
0