From 5aae2d69b87c1d281051809b9da31effcd288ec0 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 4 Dec 2025 01:36:16 +0700 Subject: [PATCH 1/2] [docs] Add example of editorUrl value config on Visual Studio Code --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 02d15b5..b0eecc8 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,11 @@ parameters: ``` When you haven't done so, make sure to configure the [editorUrl](https://phpstan.org/user-guide/output-format#opening-file-in-an-editor): + ```neon parameters: + # on PhpStorm editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%' + + # On Visual Studio Code, change to: + # editorUrl: 'vscode://file/%%file%%:%%line%%' From 28b2f8e50d1244f2db6777b5afb322799fd3de5b Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 4 Dec 2025 01:38:39 +0700 Subject: [PATCH 2/2] update per detail --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b0eecc8..19ae10b 100644 --- a/README.md +++ b/README.md @@ -54,10 +54,16 @@ parameters: When you haven't done so, make sure to configure the [editorUrl](https://phpstan.org/user-guide/output-format#opening-file-in-an-editor): +For example, on PhpStorm: + ```neon parameters: - # on PhpStorm editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%' +``` + +On Visual Studio Code, you can change to: - # On Visual Studio Code, change to: - # editorUrl: 'vscode://file/%%file%%:%%line%%' +```neon +parameters: + editorUrl: 'vscode://file/%%file%%:%%line%%' +```