Skip to content

Commit

Permalink
Information about rel_file support in editorUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
Wirone committed Jun 20, 2022
1 parent 562e9f6 commit 9c3bbbc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions website/src/user-guide/output-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,9 @@ parameters:
```

To make the text really clickable in your terminal you might need to register the protocol in your system; see [eclemens/atom-url-handler](https://github.com/eclemens/atom-url-handler) for an example.

<div class="text-xs inline-block border border-green-600 text-green-600 bg-green-100 rounded px-1 mb-4">Available in PHPStan 1.7.15</div>

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%%`.

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).

0 comments on commit 9c3bbbc

Please sign in to comment.