From c0086d9c21d82ce08c6ebe3866d29d265b355aa5 Mon Sep 17 00:00:00 2001 From: Jan Nedbal Date: Fri, 16 Dec 2022 10:58:21 +0100 Subject: [PATCH] output-format: add info about editorUrlTitle --- website/src/user-guide/output-format.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/website/src/user-guide/output-format.md b/website/src/user-guide/output-format.md index c2dfdd87b1..883d2f38d3 100644 --- a/website/src/user-guide/output-format.md +++ b/website/src/user-guide/output-format.md @@ -63,4 +63,15 @@ To make the text really clickable in your terminal you might need to register th If you run PHPStan analysis within Docker container (or using other virtualization tools) you may need to use `%relFile%` instead of `%file%`. This will use file's path relative to the current working directory. In the end your `editorUrl` should look like this: `phpstorm://open?file=/path/to/your/project/%%relFile%%&line=%%line%%`. + +
Available in PHPStan 1.9.3
+ +You may also want to change the default title of the clickable link to contain line to be able to quickly copy-paste it to your IDE when used within an environment that is not clickable (like CI output). Here is how: +```neon +parameters: + editorUrlTitle: '%%relFile%%:%%line%%' +``` + +-------------------- + Since every team member working on the same project will likely have different absolute path to the project, machine-specific `editorUrl` should be used in `phpstan.neon` [paired with `phpstan.neon.dist` where all the common project settings live](/config-reference#multiple-files).